From 23cae4aea27e021ac52fc040be5493ae08b35942 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Mon, 4 Aug 2008 11:26:38 +0800 Subject: [PATCH] --- yaml --- r: 110350 b: refs/heads/master c: 2bd455dbfebfd632a8dcf1d3d1612737986fde0a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/smpboot.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 072fdc78725e..f5e452096612 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 59f09ba2b62e6f89beeb4c8fc2c83fe14321dda9 +refs/heads/master: 2bd455dbfebfd632a8dcf1d3d1612737986fde0a diff --git a/trunk/arch/x86/kernel/smpboot.c b/trunk/arch/x86/kernel/smpboot.c index 332512767f4f..d5e19c362046 100644 --- a/trunk/arch/x86/kernel/smpboot.c +++ b/trunk/arch/x86/kernel/smpboot.c @@ -1271,16 +1271,13 @@ __init void prefill_possible_map(void) if (!num_processors) num_processors = 1; -#ifdef CONFIG_HOTPLUG_CPU if (additional_cpus == -1) { if (disabled_cpus > 0) additional_cpus = disabled_cpus; else additional_cpus = 0; } -#else - additional_cpus = 0; -#endif + possible = num_processors + additional_cpus; if (possible > NR_CPUS) possible = NR_CPUS;