Merge branch 'x86/mce' into x86/urgent
authorIngo Molnar <mingo@kernel.org>
Wed, 30 May 2012 12:12:06 +0000 (14:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 30 May 2012 12:12:06 +0000 (14:12 +0200)
Merge in these fixlets.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/bitops.h
arch/x86/kernel/cpu/mcheck/mce.c
drivers/edac/mce_amd.h

index b97596e2b68c7ea3f62eebb38cd1f155719c150e..a6983b2772201c6109060ea25d983499f0281531 100644 (file)
@@ -15,6 +15,8 @@
 #include <linux/compiler.h>
 #include <asm/alternative.h>
 
+#define BIT_64(n)                      (U64_C(1) << (n))
+
 /*
  * These have to be done with inline assembly: that way the bit-setting
  * is guaranteed to be atomic. All bit operations return 0 if the bit
index 2afcbd253e1da1768a10eeb6bdb9a74d286048b7..aaa056f31693a921457a7bf0918de99572192041 100644 (file)
@@ -1458,9 +1458,9 @@ static int __cpuinit __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
                                 rdmsrl(msrs[i], val);
 
                                 /* CntP bit set? */
-                                if (val & BIT(62)) {
-                                        val &= ~BIT(62);
-                                        wrmsrl(msrs[i], val);
+                                if (val & BIT_64(62)) {
+                                       val &= ~BIT_64(62);
+                                       wrmsrl(msrs[i], val);
                                 }
                         }
 
index c6074c5cd1ef49bd492d2e94793686a2710d694f..8c87a5e870577c06b0082ca7d3b19eb7a81a252b 100644 (file)
@@ -5,8 +5,6 @@
 
 #include <asm/mce.h>
 
-#define BIT_64(n)                      (U64_C(1) << (n))
-
 #define EC(x)                          ((x) & 0xffff)
 #define XEC(x, mask)                   (((x) >> 16) & mask)