Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53880
b: refs/heads/master
c: 959b4fd
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Andi Kleen committed May 2, 2007
1 parent a06182c commit 4516035
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 752783c050f1729452a89b2baea45b0124ac91c7
refs/heads/master: 959b4fdfe7e27bcf101e2381e500e4076f2bb9ce
3 changes: 3 additions & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ parameter is applicable:
GENERIC_TIME The generic timeofday code is enabled.
NFS Appropriate NFS support is enabled.
OSS OSS sound support is enabled.
PV_OPS A paravirtualized kernel
PARIDE The ParIDE subsystem is enabled.
PARISC The PA-RISC architecture is enabled.
PCI PCI bus support is enabled.
Expand Down Expand Up @@ -1164,6 +1165,8 @@ and is between 256 and 4096 characters. It is defined in the file

nomce [IA-32] Machine Check Exception

noreplace-paravirt [IA-32,PV_OPS] Don't patch paravirt_ops

noreplace-smp [IA-32,SMP] Don't replace SMP instructions
with UP alternatives

Expand Down
13 changes: 13 additions & 0 deletions trunk/arch/i386/kernel/alternative.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ static int __init setup_noreplace_smp(char *str)
}
__setup("noreplace-smp", setup_noreplace_smp);

#ifdef CONFIG_PARAVIRT
static int noreplace_paravirt = 0;

static int __init setup_noreplace_paravirt(char *str)
{
noreplace_paravirt = 1;
return 1;
}
__setup("noreplace-paravirt", setup_noreplace_paravirt);
#endif

#define DPRINTK(fmt, args...) if (debug_alternative) \
printk(KERN_DEBUG fmt, args)
Expand Down Expand Up @@ -330,6 +340,9 @@ void apply_paravirt(struct paravirt_patch_site *start,
{
struct paravirt_patch_site *p;

if (noreplace_paravirt)
return;

for (p = start; p < end; p++) {
unsigned int used;

Expand Down

0 comments on commit 4516035

Please sign in to comment.