]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf, x86: Implement IBS pmu control ops
authorRobert Richter <robert.richter@amd.com>
Fri, 8 Jul 2011 15:46:11 +0000 (17:46 +0200)
committerRobert Richter <robert.richter@amd.com>
Thu, 15 Dec 2011 14:17:42 +0000 (15:17 +0100)
commit652b01d81f59311612068e69aff57905c982ca26
tree17087385e1bd40c9073fb5787dfbaef7630de7ed
parent662355a5102099e4d0f9c752b541bdb9b7726d8e
perf, x86: Implement IBS pmu control ops

Add code to control the IBS pmu. We need to maintain per-cpu
states. Since some states are used and changed by the nmi handler,
access to these states must be atomic.

V4:
* fix returned number of handled nmis in perf_ibs_handle_irq()

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/kernel/cpu/perf_event_amd_ibs.c