diff options
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_p4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_p4.c b/arch/x86/kernel/cpu/perf_event_p4.c index 02f072830237..87e1803e67a6 100644 --- a/arch/x86/kernel/cpu/perf_event_p4.c +++ b/arch/x86/kernel/cpu/perf_event_p4.c | |||
@@ -473,7 +473,7 @@ static inline int p4_pmu_clear_cccr_ovf(struct hw_perf_event *hwc) | |||
473 | rdmsr(hwc->config_base + hwc->idx, low, high); | 473 | rdmsr(hwc->config_base + hwc->idx, low, high); |
474 | 474 | ||
475 | /* we need to check high bit for unflagged overflows */ | 475 | /* we need to check high bit for unflagged overflows */ |
476 | if ((low & P4_CCCR_OVF) || (high & (1 << 31))) { | 476 | if ((low & P4_CCCR_OVF) || !(high & (1 << 31))) { |
477 | overflow = 1; | 477 | overflow = 1; |
478 | (void)checking_wrmsrl(hwc->config_base + hwc->idx, | 478 | (void)checking_wrmsrl(hwc->config_base + hwc->idx, |
479 | ((u64)low) & ~P4_CCCR_OVF); | 479 | ((u64)low) & ~P4_CCCR_OVF); |