aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/events/intel/uncore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c
index a7956fc7ca1d..3b0f93eb3cc0 100644
--- a/arch/x86/events/intel/uncore.c
+++ b/arch/x86/events/intel/uncore.c
@@ -218,7 +218,7 @@ void uncore_perf_event_update(struct intel_uncore_box *box, struct perf_event *e
218 u64 prev_count, new_count, delta; 218 u64 prev_count, new_count, delta;
219 int shift; 219 int shift;
220 220
221 if (event->hw.idx >= UNCORE_PMC_IDX_FIXED) 221 if (event->hw.idx == UNCORE_PMC_IDX_FIXED)
222 shift = 64 - uncore_fixed_ctr_bits(box); 222 shift = 64 - uncore_fixed_ctr_bits(box);
223 else 223 else
224 shift = 64 - uncore_perf_ctr_bits(box); 224 shift = 64 - uncore_perf_ctr_bits(box);