smp.c (188933ac139a6f8ab06cad369bd0200af947b00d) smp.c (fccb9a81fd08b61bed91ddef88341694f8ecbfd1)
1/*
2 * SMP initialisation and IPI support
3 * Based on arch/arm/kernel/smp.c
4 *
5 * Copyright (C) 2012 ARM Ltd.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 308 unchanged lines hidden (view full) ---

317 set_my_cpu_offset(per_cpu_offset(smp_processor_id()));
318}
319
320/*
321 * Enumerate the possible CPU set from the device tree and build the
322 * cpu logical map array containing MPIDR values related to logical
323 * cpus. Assumes that cpu_logical_map(0) has already been initialized.
324 */
1/*
2 * SMP initialisation and IPI support
3 * Based on arch/arm/kernel/smp.c
4 *
5 * Copyright (C) 2012 ARM Ltd.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 308 unchanged lines hidden (view full) ---

317 set_my_cpu_offset(per_cpu_offset(smp_processor_id()));
318}
319
320/*
321 * Enumerate the possible CPU set from the device tree and build the
322 * cpu logical map array containing MPIDR values related to logical
323 * cpus. Assumes that cpu_logical_map(0) has already been initialized.
324 */
325void __init smp_init_cpus(void)
325void __init of_smp_init_cpus(void)
326{
327 struct device_node *dn = NULL;
328 unsigned int i, cpu = 1;
329 bool bootcpu_valid = false;
330
331 while ((dn = of_find_node_by_type(dn, "cpu"))) {
332 const u32 *cell;
333 u64 hwid;

--- 325 unchanged lines hidden ---
326{
327 struct device_node *dn = NULL;
328 unsigned int i, cpu = 1;
329 bool bootcpu_valid = false;
330
331 while ((dn = of_find_node_by_type(dn, "cpu"))) {
332 const u32 *cell;
333 u64 hwid;

--- 325 unchanged lines hidden ---