aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-09-22 10:08:37 -0400
committerBorislav Petkov <borislav.petkov@amd.com>2011-01-07 05:54:21 -0500
commit6245288232516aadf293f575d1812dafb4696aee (patch)
tree8ca69fb55bbc1556b75cc3cbc5cccc1bca4aa613 /drivers/edac/amd64_edac.c
parentb8f85c477bdf1fec98ea7cbe952fdb5f40eb0aa7 (diff)
EDAC, MCE: Overhaul error fields extraction macros
Make macro names shorter thus making code shorter and more clear. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r--drivers/edac/amd64_edac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index eca9ba193e94..0212232e1597 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2055,8 +2055,8 @@ static void amd64_handle_ue(struct mem_ctl_info *mci,
2055static inline void __amd64_decode_bus_error(struct mem_ctl_info *mci, 2055static inline void __amd64_decode_bus_error(struct mem_ctl_info *mci,
2056 struct err_regs *info) 2056 struct err_regs *info)
2057{ 2057{
2058 u32 ec = ERROR_CODE(info->nbsl); 2058 u16 ec = EC(info->nbsl);
2059 u32 xec = EXT_ERROR_CODE(info->nbsl); 2059 u8 xec = XEC(info->nbsl, 0x1f);
2060 int ecc_type = (info->nbsh >> 13) & 0x3; 2060 int ecc_type = (info->nbsh >> 13) & 0x3;
2061 2061
2062 /* Bail early out if this was an 'observed' error */ 2062 /* Bail early out if this was an 'observed' error */