]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/events/core.c
perf_counter: x86: Fix up the amd NMI/INT throttle
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 13 May 2009 11:21:36 +0000 (13:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 May 2009 07:47:01 +0000 (09:47 +0200)
commit962bf7a66edca4d36a730a38ff8410a67f560e40
tree86a22c33a9daed37db6afccfa5ed01e06ea5c00e
parent53020fe81eecd0b7be295868ce5850ef8f41074e
perf_counter: x86: Fix up the amd NMI/INT throttle

perf_counter_unthrottle() restores throttle_ctrl, buts its never set.
Also, we fail to disable all counters when throttling.

[ Impact: fix rare stuck perf-counters when they are throttled ]

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c