Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148882
b: refs/heads/master
c: d7c3c9a
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed May 28, 2009
1 parent 791df59 commit 3a840a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 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: 04b2b1a4df6cd0fdaa598f3c623a19c2d93cb48a
refs/heads/master: d7c3c9a609563868d8a70e220399d06a25aba095
29 changes: 11 additions & 18 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,16 +907,6 @@ static struct miscdevice mce_log_device = {
&mce_chrdev_ops,
};

/*
* Old style boot options parsing. Only for compatibility.
*/
static int __init mcheck_disable(char *str)
{
mce_disabled = 1;
return 1;
}
__setup("nomce", mcheck_disable);

/*
* mce=off disables machine check
* mce=TOLERANCELEVEL (number, see above)
Expand Down Expand Up @@ -1327,19 +1317,22 @@ void mcheck_init(struct cpuinfo_x86 *c)
printk(KERN_INFO "mce: CPU supports %d MCE banks\n", nr_mce_banks);
}

static int __init mcheck_disable(char *str)
{
mce_disabled = 1;
return 1;
}

static int __init mcheck_enable(char *str)
{
mce_disabled = -1;
return 1;
}

__setup("nomce", mcheck_disable);
__setup("mce", mcheck_enable);

#endif /* CONFIG_X86_32 */
#endif /* CONFIG_X86_OLD_MCE */

/*
* Old style boot options parsing. Only for compatibility.
*/
static int __init mcheck_disable(char *str)
{
mce_disabled = 1;
return 1;
}
__setup("nomce", mcheck_disable);

0 comments on commit 3a840a5

Please sign in to comment.