diff options
-rw-r--r-- | arch/mips/cavium-octeon/smp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c index 2c8d156f240c..ea969309b35f 100644 --- a/arch/mips/cavium-octeon/smp.c +++ b/arch/mips/cavium-octeon/smp.c | |||
@@ -84,6 +84,9 @@ static void octeon_smp_hotplug_setup(void) | |||
84 | #ifdef CONFIG_HOTPLUG_CPU | 84 | #ifdef CONFIG_HOTPLUG_CPU |
85 | struct linux_app_boot_info *labi; | 85 | struct linux_app_boot_info *labi; |
86 | 86 | ||
87 | if (!setup_max_cpus) | ||
88 | return; | ||
89 | |||
87 | labi = (struct linux_app_boot_info *)PHYS_TO_XKSEG_CACHED(LABI_ADDR_IN_BOOTLOADER); | 90 | labi = (struct linux_app_boot_info *)PHYS_TO_XKSEG_CACHED(LABI_ADDR_IN_BOOTLOADER); |
88 | if (labi->labi_signature != LABI_SIGNATURE) | 91 | if (labi->labi_signature != LABI_SIGNATURE) |
89 | panic("The bootloader version on this board is incorrect."); | 92 | panic("The bootloader version on this board is incorrect."); |
@@ -129,7 +132,7 @@ static void octeon_smp_setup(void) | |||
129 | * will assign CPU numbers for possible cores as well. Cores | 132 | * will assign CPU numbers for possible cores as well. Cores |
130 | * are always consecutively numberd from 0. | 133 | * are always consecutively numberd from 0. |
131 | */ | 134 | */ |
132 | for (id = 0; id < num_cores && id < NR_CPUS; id++) { | 135 | for (id = 0; setup_max_cpus && id < num_cores && id < NR_CPUS; id++) { |
133 | if (!(core_mask & (1 << id))) { | 136 | if (!(core_mask & (1 << id))) { |
134 | set_cpu_possible(cpus, true); | 137 | set_cpu_possible(cpus, true); |
135 | __cpu_number_map[id] = cpus; | 138 | __cpu_number_map[id] = cpus; |