diff options
Diffstat (limited to 'arch/mips/sibyte/bcm1480/smp.c')
| -rw-r--r-- | arch/mips/sibyte/bcm1480/smp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/mips/sibyte/bcm1480/smp.c b/arch/mips/sibyte/bcm1480/smp.c index d667875be564..de88e22694a0 100644 --- a/arch/mips/sibyte/bcm1480/smp.c +++ b/arch/mips/sibyte/bcm1480/smp.c | |||
| @@ -138,7 +138,7 @@ static void __cpuinit bcm1480_boot_secondary(int cpu, struct task_struct *idle) | |||
| 138 | 138 | ||
| 139 | /* | 139 | /* |
| 140 | * Use CFE to find out how many CPUs are available, setting up | 140 | * Use CFE to find out how many CPUs are available, setting up |
| 141 | * cpu_possible_map and the logical/physical mappings. | 141 | * cpu_possible_mask and the logical/physical mappings. |
| 142 | * XXXKW will the boot CPU ever not be physical 0? | 142 | * XXXKW will the boot CPU ever not be physical 0? |
| 143 | * | 143 | * |
| 144 | * Common setup before any secondaries are started | 144 | * Common setup before any secondaries are started |
| @@ -147,14 +147,13 @@ static void __init bcm1480_smp_setup(void) | |||
| 147 | { | 147 | { |
| 148 | int i, num; | 148 | int i, num; |
| 149 | 149 | ||
| 150 | cpus_clear(cpu_possible_map); | 150 | init_cpu_possible(cpumask_of(0)); |
| 151 | cpu_set(0, cpu_possible_map); | ||
| 152 | __cpu_number_map[0] = 0; | 151 | __cpu_number_map[0] = 0; |
| 153 | __cpu_logical_map[0] = 0; | 152 | __cpu_logical_map[0] = 0; |
| 154 | 153 | ||
| 155 | for (i = 1, num = 0; i < NR_CPUS; i++) { | 154 | for (i = 1, num = 0; i < NR_CPUS; i++) { |
| 156 | if (cfe_cpu_stop(i) == 0) { | 155 | if (cfe_cpu_stop(i) == 0) { |
| 157 | cpu_set(i, cpu_possible_map); | 156 | set_cpu_possible(i, true); |
| 158 | __cpu_number_map[i] = ++num; | 157 | __cpu_number_map[i] = ++num; |
| 159 | __cpu_logical_map[num] = i; | 158 | __cpu_logical_map[num] = i; |
| 160 | } | 159 | } |
