···2525#ifndef _ASM_X86_TOPOLOGY_H2626#define _ASM_X86_TOPOLOGY_H27272828-#ifdef CONFIG_X86_322929-# ifdef CONFIG_SMP3030-# define ENABLE_TOPO_DEFINES3131-# endif3232-#else3333-# ifdef CONFIG_SMP3434-# define ENABLE_TOPO_DEFINES3535-# endif3636-#endif3737-3828/*3929 * to preserve the visibility of NUMA_NO_NODE definition,4030 * moved to there from here. May be used independent of···113123#define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id)114124#define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id)115125116116-#ifdef ENABLE_TOPO_DEFINES126126+#ifdef CONFIG_SMP117127#define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu))118128#define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu))119129
+3-4
arch/x86/kernel/cpu/intel.c
···300300 }301301302302 /*303303- * P4 Xeon errata 037 workaround.303303+ * P4 Xeon erratum 037 workaround.304304 * Hardware prefetcher may cause stale data to be loaded into the cache.305305 */306306 if ((c->x86 == 15) && (c->x86_model == 1) && (c->x86_mask == 1)) {307307 if (msr_set_bit(MSR_IA32_MISC_ENABLE,308308- MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE_BIT)309309- > 0) {308308+ MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE_BIT) > 0) {310309 pr_info("CPU: C0 stepping P4 Xeon detected.\n");311311- pr_info("CPU: Disabling hardware prefetching (Errata 037)\n");310310+ pr_info("CPU: Disabling hardware prefetching (Erratum 037)\n");312311 }313312 }314313