]> git.karo-electronics.de Git - mv-sheeva.git/commit
perf_counter, x86: implement the interrupt handler for AMD cpus
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 10:47:21 +0000 (12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:51:12 +0000 (14:51 +0200)
commita29aa8a7ff93e4196d558036928597e68337dd8d
tree5bf6bb57dba4440c90d0218438940603c286690d
parent85cf9dba92152bb4edec118b2f4f0be1ae7fdcab
perf_counter, x86: implement the interrupt handler for AMD cpus

This patch implements the interrupt handler for AMD performance
counters. In difference to the Intel pmu, there is no single status
register and also there are no fixed counters. This makes the handler
very different and it is useful to make the handler vendor
specific. To check if a counter is overflowed the upper bit of the
counter is checked. Only counters where the active bit is set are
checked.

With this patch throttling is enabled for AMD performance counters.

This patch also reenables Linux performance counters on AMD cpus.

[ Impact: re-enable perfcounters on AMD CPUs ]

Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1241002046-8832-25-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c