aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/perf_event_intel.c6
-rw-r--r--arch/x86/kernel/cpu/proc.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
index 3998131d1a68..324817735771 100644
--- a/arch/x86/kernel/cpu/perf_event_intel.c
+++ b/arch/x86/kernel/cpu/perf_event_intel.c
@@ -2621,7 +2621,7 @@ static void intel_pmu_cpu_starting(int cpu)
2621 if (!(x86_pmu.flags & PMU_FL_NO_HT_SHARING)) { 2621 if (!(x86_pmu.flags & PMU_FL_NO_HT_SHARING)) {
2622 void **onln = &cpuc->kfree_on_online[X86_PERF_KFREE_SHARED]; 2622 void **onln = &cpuc->kfree_on_online[X86_PERF_KFREE_SHARED];
2623 2623
2624 for_each_cpu(i, topology_thread_cpumask(cpu)) { 2624 for_each_cpu(i, topology_sibling_cpumask(cpu)) {
2625 struct intel_shared_regs *pc; 2625 struct intel_shared_regs *pc;
2626 2626
2627 pc = per_cpu(cpu_hw_events, i).shared_regs; 2627 pc = per_cpu(cpu_hw_events, i).shared_regs;
@@ -2641,7 +2641,7 @@ static void intel_pmu_cpu_starting(int cpu)
2641 if (x86_pmu.flags & PMU_FL_EXCL_CNTRS) { 2641 if (x86_pmu.flags & PMU_FL_EXCL_CNTRS) {
2642 int h = x86_pmu.num_counters >> 1; 2642 int h = x86_pmu.num_counters >> 1;
2643 2643
2644 for_each_cpu(i, topology_thread_cpumask(cpu)) { 2644 for_each_cpu(i, topology_sibling_cpumask(cpu)) {
2645 struct intel_excl_cntrs *c; 2645 struct intel_excl_cntrs *c;
2646 2646
2647 c = per_cpu(cpu_hw_events, i).excl_cntrs; 2647 c = per_cpu(cpu_hw_events, i).excl_cntrs;
@@ -3403,7 +3403,7 @@ static __init int fixup_ht_bug(void)
3403 if (!(x86_pmu.flags & PMU_FL_EXCL_ENABLED)) 3403 if (!(x86_pmu.flags & PMU_FL_EXCL_ENABLED))
3404 return 0; 3404 return 0;
3405 3405
3406 w = cpumask_weight(topology_thread_cpumask(cpu)); 3406 w = cpumask_weight(topology_sibling_cpumask(cpu));
3407 if (w > 1) { 3407 if (w > 1) {
3408 pr_info("PMU erratum BJ122, BV98, HSD29 worked around, HT is on\n"); 3408 pr_info("PMU erratum BJ122, BV98, HSD29 worked around, HT is on\n");
3409 return 0; 3409 return 0;
diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c
index e7d8c7608471..18ca99f2798b 100644
--- a/arch/x86/kernel/cpu/proc.c
+++ b/arch/x86/kernel/cpu/proc.c
@@ -12,7 +12,8 @@ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c,
12{ 12{
13#ifdef CONFIG_SMP 13#ifdef CONFIG_SMP
14 seq_printf(m, "physical id\t: %d\n", c->phys_proc_id); 14 seq_printf(m, "physical id\t: %d\n", c->phys_proc_id);
15 seq_printf(m, "siblings\t: %d\n", cpumask_weight(cpu_core_mask(cpu))); 15 seq_printf(m, "siblings\t: %d\n",
16 cpumask_weight(topology_core_cpumask(cpu)));
16 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id); 17 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id);
17 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores); 18 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores);
18 seq_printf(m, "apicid\t\t: %d\n", c->apicid); 19 seq_printf(m, "apicid\t\t: %d\n", c->apicid);