aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-08-03 23:26:38 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-15 10:33:28 -0400
commit2bd455dbfebfd632a8dcf1d3d1612737986fde0a (patch)
tree864dd9d6c07617b67f8c4496c4f4472e2d97132d /arch
parent59f09ba2b62e6f89beeb4c8fc2c83fe14321dda9 (diff)
x86: remove nesting CONFIG_HOTPLUG_CPU
prefill_possible_map() is defined inside CONFIG_HOTPLUG_CPU, so the nesting CONFIG_HOTPLUG_CPU is just redundant. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/smpboot.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 332512767f4f..d5e19c362046 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1271,16 +1271,13 @@ __init void prefill_possible_map(void)
1271 if (!num_processors) 1271 if (!num_processors)
1272 num_processors = 1; 1272 num_processors = 1;
1273 1273
1274#ifdef CONFIG_HOTPLUG_CPU
1275 if (additional_cpus == -1) { 1274 if (additional_cpus == -1) {
1276 if (disabled_cpus > 0) 1275 if (disabled_cpus > 0)
1277 additional_cpus = disabled_cpus; 1276 additional_cpus = disabled_cpus;
1278 else 1277 else
1279 additional_cpus = 0; 1278 additional_cpus = 0;
1280 } 1279 }
1281#else 1280
1282 additional_cpus = 0;
1283#endif
1284 possible = num_processors + additional_cpus; 1281 possible = num_processors + additional_cpus;
1285 if (possible > NR_CPUS) 1282 if (possible > NR_CPUS)
1286 possible = NR_CPUS; 1283 possible = NR_CPUS;