linux_dsm_epyc7002/arch/powerpc
Peter Zijlstra 9e35ad388b perf_counter: Rework the perf counter disable/enable
The current disable/enable mechanism is:

	token = hw_perf_save_disable();
	...
	/* do bits */
	...
	hw_perf_restore(token);

This works well, provided that the use nests properly. Except we don't.

x86 NMI/INT throttling has non-nested use of this, breaking things. Therefore
provide a reference counter disable/enable interface, where the first disable
disables the hardware, and the last enable enables the hardware again.

[ Impact: refactor, simplify the PMU disable/enable logic ]

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>
2009-05-15 09:47:02 +02:00
..
boot Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/powerpc-4xx into merge 2009-04-28 10:47:16 +10:00
configs Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6 into merge 2009-04-22 13:02:09 +10:00
include/asm perf_counter: powerpc: allow use of limited-function counters 2009-04-29 14:58:35 +02:00
kernel perf_counter: Rework the perf counter disable/enable 2009-05-15 09:47:02 +02:00
kvm
lib
math-emu
mm Merge branch 'linus' into perfcounters/core 2009-04-29 14:47:05 +02:00
oprofile
platforms Merge branch 'linus' into perfcounters/core 2009-04-29 14:47:05 +02:00
sysdev Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6 into merge 2009-04-22 13:02:09 +10:00
xmon
Kconfig powerpc: Allow 256kB pages with SHMEM 2009-04-15 15:23:53 +10:00
Kconfig.debug
Makefile