diff options
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_amd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_amd.c b/arch/x86/kernel/cpu/perf_event_amd.c index db8e603ff0c6..aeefd45697a2 100644 --- a/arch/x86/kernel/cpu/perf_event_amd.c +++ b/arch/x86/kernel/cpu/perf_event_amd.c | |||
@@ -411,7 +411,7 @@ static __initconst const struct x86_pmu amd_pmu = { | |||
411 | .perfctr = MSR_K7_PERFCTR0, | 411 | .perfctr = MSR_K7_PERFCTR0, |
412 | .event_map = amd_pmu_event_map, | 412 | .event_map = amd_pmu_event_map, |
413 | .max_events = ARRAY_SIZE(amd_perfmon_event_map), | 413 | .max_events = ARRAY_SIZE(amd_perfmon_event_map), |
414 | .num_counters = 4, | 414 | .num_counters = AMD64_NUM_COUNTERS, |
415 | .cntval_bits = 48, | 415 | .cntval_bits = 48, |
416 | .cntval_mask = (1ULL << 48) - 1, | 416 | .cntval_mask = (1ULL << 48) - 1, |
417 | .apic = 1, | 417 | .apic = 1, |
@@ -575,7 +575,7 @@ static __initconst const struct x86_pmu amd_pmu_f15h = { | |||
575 | .perfctr = MSR_F15H_PERF_CTR, | 575 | .perfctr = MSR_F15H_PERF_CTR, |
576 | .event_map = amd_pmu_event_map, | 576 | .event_map = amd_pmu_event_map, |
577 | .max_events = ARRAY_SIZE(amd_perfmon_event_map), | 577 | .max_events = ARRAY_SIZE(amd_perfmon_event_map), |
578 | .num_counters = 6, | 578 | .num_counters = AMD64_NUM_COUNTERS_F15H, |
579 | .cntval_bits = 48, | 579 | .cntval_bits = 48, |
580 | .cntval_mask = (1ULL << 48) - 1, | 580 | .cntval_mask = (1ULL << 48) - 1, |
581 | .apic = 1, | 581 | .apic = 1, |