x86,perf: P4 PMU -- fix misprint in unflagged nmi handling
Subsystems (2)
PATCH 1/1 x86,perf: P4 PMU -- fix misprint in unflagged nmi handling
From: Cyrill Gorcunov <[email protected]>
Subject: [PATCH] x86,perf: P4 PMU -- fix misprint in unflagged nmi handling
Tested-by Lin Ming <[email protected]>
Signed-off-by Cyrill Gorcunov <[email protected]>
--- arch/x86/kernel/cpu/perf_event_p4.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/cpu/perf_event_p4.c +1 -1
@@ -473,7 +473,7 @@ static inline int p4_pmu_clear_cccr_ovf(struct hw_perf_event *hwc)rdmsr (hwc->config_base + hwc->idx, low, high);/* we need to check high bit for unflagged overflows */ -if ((low &P4_CCCR_OVF ) || (high & (1 <<31 ))) { +if ((low &P4_CCCR_OVF ) || !(high & (1 <<31 ))) { overflow =1 ; (void )checking_wrmsrl (hwc->config_base + hwc->idx, ((u64 )low) & ~P4_CCCR_OVF );
[tip:perf/core] perf, x86: P4 PMU -- fix typo in unflagged NMI handling
Commit-ID: ef4f30f54e265c2f6f9ac9eda4db158a4e16050b Gitweb: http://git.kernel.org/tip/ef4f30f54e265c2f6f9ac9eda4db158a4e16050b Author: Cyrill Gorcunov <[email protected]> AuthorDate: Tue, 18 May 2010 17:29:14 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 18 May 2010 12:05:20 +0200
perf, x86: P4 PMU -- fix typo in unflagged NMI handling
Tested-by Lin Ming <[email protected]>
Signed-off-by Cyrill Gorcunov <[email protected]>
Cc Cyrill Gorcunov <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/kernel/cpu/perf_event_p4.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/cpu/perf_event_p4.c +1 -1
@@ -473,7 +473,7 @@ static inline int p4_pmu_clear_cccr_ovf(struct hw_perf_event *hwc)rdmsr (hwc->config_base + hwc->idx, low, high);/* we need to check high bit for unflagged overflows */ -if ((low &P4_CCCR_OVF ) || (high & (1 <<31 ))) { +if ((low &P4_CCCR_OVF ) || !(high & (1 <<31 ))) { overflow =1 ; (void )checking_wrmsrl (hwc->config_base + hwc->idx, ((u64 )low) & ~P4_CCCR_OVF );