aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/alternative.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2007-07-21 11:10:25 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-21 21:37:09 -0400
commit09488165d5cc795a90b789c5657b1cbd279beb16 (patch)
tree4fe8e07ab2eca98cdcbf086081a4b26c4a1c11de /arch/i386/kernel/alternative.c
parentd567b6a955c2c1a6b0e8fc13ecddc7d4ac4900a2 (diff)
i386: smp-alt-once option is only useful with HOTPLUG_CPU
Hence remove its handling in the opposite case. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/i386/kernel/alternative.c')
-rw-r--r--arch/i386/kernel/alternative.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/i386/kernel/alternative.c b/arch/i386/kernel/alternative.c
index d8cda14fff8b..0695be538de5 100644
--- a/arch/i386/kernel/alternative.c
+++ b/arch/i386/kernel/alternative.c
@@ -5,9 +5,8 @@
5#include <asm/alternative.h> 5#include <asm/alternative.h>
6#include <asm/sections.h> 6#include <asm/sections.h>
7 7
8static int noreplace_smp = 0; 8#ifdef CONFIG_HOTPLUG_CPU
9static int smp_alt_once = 0; 9static int smp_alt_once;
10static int debug_alternative = 0;
11 10
12static int __init bootonly(char *str) 11static int __init bootonly(char *str)
13{ 12{
@@ -15,6 +14,11 @@ static int __init bootonly(char *str)
15 return 1; 14 return 1;
16} 15}
17__setup("smp-alt-boot", bootonly); 16__setup("smp-alt-boot", bootonly);
17#else
18#define smp_alt_once 1
19#endif
20
21static int debug_alternative;
18 22
19static int __init debug_alt(char *str) 23static int __init debug_alt(char *str)
20{ 24{
@@ -23,6 +27,8 @@ static int __init debug_alt(char *str)
23} 27}
24__setup("debug-alternative", debug_alt); 28__setup("debug-alternative", debug_alt);
25 29
30static int noreplace_smp;
31
26static int __init setup_noreplace_smp(char *str) 32static int __init setup_noreplace_smp(char *str)
27{ 33{
28 noreplace_smp = 1; 34 noreplace_smp = 1;
@@ -376,8 +382,6 @@ void __init alternative_instructions(void)
376#ifdef CONFIG_HOTPLUG_CPU 382#ifdef CONFIG_HOTPLUG_CPU
377 if (num_possible_cpus() < 2) 383 if (num_possible_cpus() < 2)
378 smp_alt_once = 1; 384 smp_alt_once = 1;
379#else
380 smp_alt_once = 1;
381#endif 385#endif
382 386
383#ifdef CONFIG_SMP 387#ifdef CONFIG_SMP