]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
perf/x86: Enable overflow on Intel KNC with a custom knc_pmu_handle_irq()
authorVince Weaver <vincent.weaver@maine.edu>
Wed, 17 Oct 2012 17:05:45 +0000 (13:05 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Oct 2012 10:00:49 +0000 (12:00 +0200)
commite4074b3049f99c6ad6e1a33e6d93d8ec0652e2c1
tree7e2710993db62f28f25b153a345a5ded68e67bd6
parent7d011962afbaa6e572cd8e0dbb7abf773e166e64
perf/x86: Enable overflow on Intel KNC with a custom knc_pmu_handle_irq()

Although based on the Intel P6 design, the interrupt mechnanism
for KNC more closely resembles the Intel architectural
perfmon one.

We can't just re-use that code though, because KNC has different
MSR numbers for the status and ack registers.

In this case we just cut-and paste from perf_event_intel.c
with some minor changes, as it looks like it would not be
worth the trouble to change that code to be MSR-configurable.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: eranian@gmail.com
Cc: Meadows Lawrence F <lawrence.f.meadows@intel.com>
Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1210171304410.23243@vincent-weaver-1.um.maine.edu
[ Small stylistic edits. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_knc.c