From 670c14f932eabb25b04bf3e241ca4447b87504ac Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Sat, 21 Jul 2007 17:10:25 +0200 Subject: [PATCH] --- yaml --- r: 62381 b: refs/heads/master c: 09488165d5cc795a90b789c5657b1cbd279beb16 h: refs/heads/master i: 62379: f06121e6540800f23752f140f9719f54bdbd47f3 v: v3 --- [refs] | 2 +- trunk/arch/i386/kernel/alternative.c | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index f726d1dcf6d2..2b9eae7c1dd9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d567b6a955c2c1a6b0e8fc13ecddc7d4ac4900a2 +refs/heads/master: 09488165d5cc795a90b789c5657b1cbd279beb16 diff --git a/trunk/arch/i386/kernel/alternative.c b/trunk/arch/i386/kernel/alternative.c index d8cda14fff8b..0695be538de5 100644 --- a/trunk/arch/i386/kernel/alternative.c +++ b/trunk/arch/i386/kernel/alternative.c @@ -5,9 +5,8 @@ #include #include -static int noreplace_smp = 0; -static int smp_alt_once = 0; -static int debug_alternative = 0; +#ifdef CONFIG_HOTPLUG_CPU +static int smp_alt_once; static int __init bootonly(char *str) { @@ -15,6 +14,11 @@ static int __init bootonly(char *str) return 1; } __setup("smp-alt-boot", bootonly); +#else +#define smp_alt_once 1 +#endif + +static int debug_alternative; static int __init debug_alt(char *str) { @@ -23,6 +27,8 @@ static int __init debug_alt(char *str) } __setup("debug-alternative", debug_alt); +static int noreplace_smp; + static int __init setup_noreplace_smp(char *str) { noreplace_smp = 1; @@ -376,8 +382,6 @@ void __init alternative_instructions(void) #ifdef CONFIG_HOTPLUG_CPU if (num_possible_cpus() < 2) smp_alt_once = 1; -#else - smp_alt_once = 1; #endif #ifdef CONFIG_SMP