From: Borislav Petkov Date: Fri, 15 Oct 2010 13:20:18 +0000 (+0200) Subject: EDAC, MCE: Add a BIT_64() macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git EDAC, MCE: Add a BIT_64() macro Add a macro for 64-bit vectors to use when accessing MSR contents. Signed-off-by: Borislav Petkov --- diff --git a/drivers/edac/mce_amd.h b/drivers/edac/mce_amd.h index 0d0637debba..35f6e0e3b29 100644 --- a/drivers/edac/mce_amd.h +++ b/drivers/edac/mce_amd.h @@ -5,6 +5,8 @@ #include +#define BIT_64(n) (U64_C(1) << (n)) + #define ERROR_CODE(x) ((x) & 0xffff) #define EXT_ERROR_CODE(x) (((x) >> 16) & 0x1f)