projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda7561
)
EDAC, MCE: Add a BIT_64() macro
author
Borislav Petkov
<borislav.petkov@amd.com>
Fri, 15 Oct 2010 13:20:18 +0000
(15:20 +0200)
committer
Borislav Petkov
<bp@amd64.org>
Thu, 21 Oct 2010 12:48:06 +0000
(14:48 +0200)
Add a macro for 64-bit vectors to use when accessing MSR contents.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/mce_amd.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/mce_amd.h
b/drivers/edac/mce_amd.h
index 0d0637debbadde81993d8dddeb79bf83cb2f5560..35f6e0e3b297de16ad5e7c0ccac18dae0c388590 100644
(file)
--- a/
drivers/edac/mce_amd.h
+++ b/
drivers/edac/mce_amd.h
@@
-5,6
+5,8
@@
#include <asm/mce.h>
+#define BIT_64(n) (U64_C(1) << (n))
+
#define ERROR_CODE(x) ((x) & 0xffff)
#define EXT_ERROR_CODE(x) (((x) >> 16) & 0x1f)