x86: mce: macros to compute banks MSRs
authorAndi Kleen <andi@firstfloor.org>
Wed, 8 Jul 2009 22:31:44 +0000 (00:31 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 10 Jul 2009 01:39:47 +0000 (18:39 -0700)
commita2d32bcbc008aa0f9c301a7c6f3494cb23e6af54
treeac4adb869a19d3cb0f67516b667a1f60e5c3cfa9
parentcebe182033f156b430952370fb0f9dbe6e89b081
x86: mce: macros to compute banks MSRs

Instead of open coded calculations for bank MSRs hide the indexing of higher
banks MCE register MSRs in new macros.

No semantic changes.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/mcheck/mce_intel.c