diff options
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 6f9d1f6063e9..8f5cabb3c5b0 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -629,10 +629,13 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) | |||
629 | * Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=33012 | 629 | * Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=33012 |
630 | */ | 630 | */ |
631 | u64 mask; | 631 | u64 mask; |
632 | int err; | ||
632 | 633 | ||
633 | rdmsrl(MSR_AMD64_MCx_MASK(4), mask); | 634 | err = rdmsrl_safe(MSR_AMD64_MCx_MASK(4), &mask); |
634 | mask |= (1 << 10); | 635 | if (err == 0) { |
635 | wrmsrl(MSR_AMD64_MCx_MASK(4), mask); | 636 | mask |= (1 << 10); |
637 | checking_wrmsrl(MSR_AMD64_MCx_MASK(4), mask); | ||
638 | } | ||
636 | } | 639 | } |
637 | } | 640 | } |
638 | 641 | ||