projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffb173e
)
x86/mce/AMD: Use msr_ops.misc() in allocate_threshold_blocks()
author
Yazen Ghannam
<Yazen.Ghannam@amd.com>
Mon, 12 Sep 2016 07:59:27 +0000
(09:59 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 13 Sep 2016 13:23:06 +0000
(15:23 +0200)
Change MSR_IA32_MCx_MISC() macro to msr_ops.misc() because SMCA machines
define a different set of MSRs and msr_ops will give you the correct
MISC register.
Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
http://lkml.kernel.org/r/1468269447-8808-1-git-send-email-Yazen.Ghannam@amd.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/mcheck/mce_amd.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/mcheck/mce_amd.c
b/arch/x86/kernel/cpu/mcheck/mce_amd.c
index
7b7f3be
..
78b7681
100644
(file)
--- a/
arch/x86/kernel/cpu/mcheck/mce_amd.c
+++ b/
arch/x86/kernel/cpu/mcheck/mce_amd.c
@@
-869,7
+869,7
@@
static int threshold_create_bank(unsigned int cpu, unsigned int bank)
}
}
- err = allocate_threshold_blocks(cpu, bank, 0,
MSR_IA32_MCx_MISC
(bank));
+ err = allocate_threshold_blocks(cpu, bank, 0,
msr_ops.misc
(bank));
if (!err)
goto out;