Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62381
b: refs/heads/master
c: 0948816
h: refs/heads/master
i:
  62379: f06121e
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Jul 22, 2007
1 parent d71f833 commit 670c14f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d567b6a955c2c1a6b0e8fc13ecddc7d4ac4900a2
refs/heads/master: 09488165d5cc795a90b789c5657b1cbd279beb16
14 changes: 9 additions & 5 deletions trunk/arch/i386/kernel/alternative.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@
#include <asm/alternative.h>
#include <asm/sections.h>

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)
{
smp_alt_once = 1;
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)
{
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 670c14f

Please sign in to comment.