perf/x86/intel: Clean up checkpoint-interrupt bits
authorPeter Zijlstra <peterz@infradead.org>
Thu, 12 Sep 2013 10:53:44 +0000 (12:53 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 Sep 2013 17:13:37 +0000 (19:13 +0200)
commit2b9e344df384e595db24ac61ae5f780e9b024878
tree8fdbf56c0a5f2700a104f546ac1871382cf45e0c
parent4b2c4f1f1b71fe18381f089c501ac21cd2167dfa
perf/x86/intel: Clean up checkpoint-interrupt bits

Clean up the weird CP interrupt exception code by keeping a CP mask.

Andi suggested this implementation but weirdly didn't actually
implement it himself, do so now because it removes the conditional in
the interrupt handler and avoids the assumption its only on cnt2.

Suggested-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-dvb4q0rydkfp00kqat4p5bah@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.h
arch/x86/kernel/cpu/perf_event_intel.c