diff options
-rw-r--r-- | arch/x86/kernel/cpu/intel_cacheinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c index 589b705e80ed..be5f5c28ddfb 100644 --- a/arch/x86/kernel/cpu/intel_cacheinfo.c +++ b/arch/x86/kernel/cpu/intel_cacheinfo.c | |||
@@ -327,7 +327,7 @@ amd_check_l3_disable(int index, struct _cpuid4_info_regs *this_leaf) | |||
327 | 327 | ||
328 | /* see errata #382 and #388 */ | 328 | /* see errata #382 and #388 */ |
329 | if ((boot_cpu_data.x86 == 0x10) && | 329 | if ((boot_cpu_data.x86 == 0x10) && |
330 | ((boot_cpu_data.x86_model < 0x9) || | 330 | ((boot_cpu_data.x86_model < 0x8) || |
331 | (boot_cpu_data.x86_mask < 0x1))) | 331 | (boot_cpu_data.x86_mask < 0x1))) |
332 | return; | 332 | return; |
333 | 333 | ||
@@ -744,7 +744,7 @@ static ssize_t show_cache_disable(struct _cpuid4_info *this_leaf, char *buf, | |||
744 | unsigned int index) | 744 | unsigned int index) |
745 | { | 745 | { |
746 | int cpu = cpumask_first(to_cpumask(this_leaf->shared_cpu_map)); | 746 | int cpu = cpumask_first(to_cpumask(this_leaf->shared_cpu_map)); |
747 | int node = cpu_to_node(cpu); | 747 | int node = amd_get_nb_id(cpu); |
748 | struct pci_dev *dev = node_to_k8_nb_misc(node); | 748 | struct pci_dev *dev = node_to_k8_nb_misc(node); |
749 | unsigned int reg = 0; | 749 | unsigned int reg = 0; |
750 | 750 | ||
@@ -771,7 +771,7 @@ static ssize_t store_cache_disable(struct _cpuid4_info *this_leaf, | |||
771 | const char *buf, size_t count, unsigned int index) | 771 | const char *buf, size_t count, unsigned int index) |
772 | { | 772 | { |
773 | int cpu = cpumask_first(to_cpumask(this_leaf->shared_cpu_map)); | 773 | int cpu = cpumask_first(to_cpumask(this_leaf->shared_cpu_map)); |
774 | int node = cpu_to_node(cpu); | 774 | int node = amd_get_nb_id(cpu); |
775 | struct pci_dev *dev = node_to_k8_nb_misc(node); | 775 | struct pci_dev *dev = node_to_k8_nb_misc(node); |
776 | unsigned long val = 0; | 776 | unsigned long val = 0; |
777 | 777 | ||