x86, MCE, AMD: Use macros to compute bank MSRs
authorChen Yucong <slaoub@gmail.com>
Tue, 23 Sep 2014 02:16:01 +0000 (10:16 +0800)
committerBorislav Petkov <bp@suse.de>
Tue, 21 Oct 2014 20:07:24 +0000 (22:07 +0200)
commit4b737d78a8081cb2def7ced262a212c31363539a
tree231d1f56bddc47158fb4b5179c432e79b91c5468
parent6dc52cbe0b181818450fc1de4c0c850226ce0e68
x86, MCE, AMD: Use macros to compute bank MSRs

Avoid open coded calculations for bank MSRs by hiding the index
of higher bank MSRs in well-defined macros.

No semantic changes.

Signed-off-by: Chen Yucong <slaoub@gmail.com>
Link: http://lkml.kernel.org/r/1411438561-24319-1-git-send-email-slaoub@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/mcheck/mce_amd.c