x86: Add another set of MSR accessor functions
authorBorislav Petkov <bp@suse.de>
Sun, 9 Mar 2014 17:05:23 +0000 (18:05 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 13 Mar 2014 22:34:45 +0000 (15:34 -0700)
commit22085a66c2fab6cf9b9393c056a3600a6b4735de
tree3175ffd60c8d06bc2c719ee8a27442bb5a6aed7f
parent2a0788dc9bc46789ec98aea0f30c6fb420196b12
x86: Add another set of MSR accessor functions

We very often need to set or clear a bit in an MSR as a result of doing
some sort of a hardware configuration. Add generic versions of that
repeated functionality in order to save us a bunch of duplicated code in
the early CPU vendor detection/config code.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1394384725-10796-2-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/msr.h
arch/x86/lib/msr.c