diff options
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index d58184b7cd44..bcb75dc97d44 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -804,8 +804,11 @@ static void init_amd(struct cpuinfo_x86 *c) | |||
804 | case 0x17: init_amd_zn(c); break; | 804 | case 0x17: init_amd_zn(c); break; |
805 | } | 805 | } |
806 | 806 | ||
807 | /* Enable workaround for FXSAVE leak */ | 807 | /* |
808 | if (c->x86 >= 6) | 808 | * Enable workaround for FXSAVE leak on CPUs |
809 | * without a XSaveErPtr feature | ||
810 | */ | ||
811 | if ((c->x86 >= 6) && (!cpu_has(c, X86_FEATURE_XSAVEERPTR))) | ||
809 | set_cpu_bug(c, X86_BUG_FXSAVE_LEAK); | 812 | set_cpu_bug(c, X86_BUG_FXSAVE_LEAK); |
810 | 813 | ||
811 | cpu_detect_cache_sizes(c); | 814 | cpu_detect_cache_sizes(c); |