diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-04-02 00:08:05 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-04-02 00:08:05 -0500 |
commit | 95d465fd750897ab32462a6702fbfe1b122cbbc0 (patch) | |
tree | 65c38b2f11c51bb6932e44dd6c92f15b0091abfe /arch/x86_64/kernel/mce.c | |
parent | 642fde17dceceb56c7ba2762733ac688666ae657 (diff) | |
parent | 683aa4012f53b2ada0f430487e05d37b0d94e90a (diff) |
Manual merge with Linus.
Conflicts:
arch/powerpc/kernel/setup-common.c
drivers/input/keyboard/hil_kbd.c
drivers/input/mouse/hil_ptr.c
Diffstat (limited to 'arch/x86_64/kernel/mce.c')
-rw-r--r-- | arch/x86_64/kernel/mce.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86_64/kernel/mce.c b/arch/x86_64/kernel/mce.c index b8b9529fa89e..10b3e348fc99 100644 --- a/arch/x86_64/kernel/mce.c +++ b/arch/x86_64/kernel/mce.c | |||
@@ -139,8 +139,7 @@ static void mce_panic(char *msg, struct mce *backup, unsigned long start) | |||
139 | 139 | ||
140 | static int mce_available(struct cpuinfo_x86 *c) | 140 | static int mce_available(struct cpuinfo_x86 *c) |
141 | { | 141 | { |
142 | return test_bit(X86_FEATURE_MCE, &c->x86_capability) && | 142 | return cpu_has(c, X86_FEATURE_MCE) && cpu_has(c, X86_FEATURE_MCA); |
143 | test_bit(X86_FEATURE_MCA, &c->x86_capability); | ||
144 | } | 143 | } |
145 | 144 | ||
146 | static inline void mce_get_rip(struct mce *m, struct pt_regs *regs) | 145 | static inline void mce_get_rip(struct mce *m, struct pt_regs *regs) |
@@ -502,7 +501,7 @@ static struct miscdevice mce_log_device = { | |||
502 | static int __init mcheck_disable(char *str) | 501 | static int __init mcheck_disable(char *str) |
503 | { | 502 | { |
504 | mce_dont_init = 1; | 503 | mce_dont_init = 1; |
505 | return 0; | 504 | return 1; |
506 | } | 505 | } |
507 | 506 | ||
508 | /* mce=off disables machine check. Note you can reenable it later | 507 | /* mce=off disables machine check. Note you can reenable it later |
@@ -522,7 +521,7 @@ static int __init mcheck_enable(char *str) | |||
522 | get_option(&str, &tolerant); | 521 | get_option(&str, &tolerant); |
523 | else | 522 | else |
524 | printk("mce= argument %s ignored. Please use /sys", str); | 523 | printk("mce= argument %s ignored. Please use /sys", str); |
525 | return 0; | 524 | return 1; |
526 | } | 525 | } |
527 | 526 | ||
528 | __setup("nomce", mcheck_disable); | 527 | __setup("nomce", mcheck_disable); |