summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/microcode_intel_early.c
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2013-12-04 12:31:31 +0100
committerBorislav Petkov <bp@suse.de>2014-01-13 19:57:27 +0100
commite1b43e3f13f7157249fb962ccf88b84eb0421fb4 (patch)
treeba9ef92b4dc9cfe9baaae81b2af7f2cde41799d3 /arch/x86/kernel/microcode_intel_early.c
parent5aa3d718f259007121b9366d36315fb8a2983d3d (diff)
x86, microcode: Share native MSR accessing variants
We want to use those in AMD's early loading path too. Also, add a native_wrmsrl variant. Signed-off-by: Borislav Petkov <bp@suse.de> Tested-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Diffstat (limited to 'arch/x86/kernel/microcode_intel_early.c')
-rw-r--r--arch/x86/kernel/microcode_intel_early.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kernel/microcode_intel_early.c b/arch/x86/kernel/microcode_intel_early.c
index 1575deb2e63..18f739129e7 100644
--- a/arch/x86/kernel/microcode_intel_early.c
+++ b/arch/x86/kernel/microcode_intel_early.c
@@ -365,16 +365,6 @@ out:
return state;
}
-#define native_rdmsr(msr, val1, val2) \
-do { \
- u64 __val = native_read_msr((msr)); \
- (void)((val1) = (u32)__val); \
- (void)((val2) = (u32)(__val >> 32)); \
-} while (0)
-
-#define native_wrmsr(msr, low, high) \
- native_write_msr(msr, low, high);
-
static int collect_cpu_info_early(struct ucode_cpu_info *uci)
{
unsigned int val[2];