diff options
-rw-r--r-- | arch/x86/kernel/cpu/intel_cacheinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c index acfb08383908..5ab14c86c6ec 100644 --- a/arch/x86/kernel/cpu/intel_cacheinfo.c +++ b/arch/x86/kernel/cpu/intel_cacheinfo.c | |||
@@ -344,6 +344,10 @@ amd_check_l3_disable(int index, struct _cpuid4_info_regs *this_leaf) | |||
344 | boot_cpu_data.x86_mask < 0x1) | 344 | boot_cpu_data.x86_mask < 0x1) |
345 | return; | 345 | return; |
346 | 346 | ||
347 | /* not in virtualized environments */ | ||
348 | if (num_k8_northbridges == 0) | ||
349 | return; | ||
350 | |||
347 | this_leaf->can_disable = true; | 351 | this_leaf->can_disable = true; |
348 | this_leaf->l3_indices = amd_calc_l3_indices(); | 352 | this_leaf->l3_indices = amd_calc_l3_indices(); |
349 | } | 353 | } |