diff options
Diffstat (limited to 'arch/x86/kernel/cpu/perf_counter.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_counter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c index 438415866fe4..1116a41bc7b5 100644 --- a/arch/x86/kernel/cpu/perf_counter.c +++ b/arch/x86/kernel/cpu/perf_counter.c | |||
@@ -800,7 +800,8 @@ again: | |||
800 | continue; | 800 | continue; |
801 | 801 | ||
802 | perf_save_and_restart(counter); | 802 | perf_save_and_restart(counter); |
803 | perf_counter_output(counter, nmi, regs); | 803 | if (perf_counter_overflow(counter, nmi, regs)) |
804 | __pmc_generic_disable(counter, &counter->hw, bit); | ||
804 | } | 805 | } |
805 | 806 | ||
806 | hw_perf_ack_status(ack); | 807 | hw_perf_ack_status(ack); |