Files
linux/arch/powerpc/kernel
Paul Mackerras 8a7b8cb91f perf_counter: powerpc: Implement interrupt throttling
This implements interrupt throttling on powerpc.  Since we don't have
individual count enable/disable or interrupt enable/disable controls
per counter, this simply sets the hardware counter to 0, meaning that
it will not interrupt again until it has counted 2^31 counts, which
will take at least 2^30 cycles assuming a maximum of 2 counts per
cycle.  Also, we set counter->hw.period_left to the maximum possible
value (2^63 - 1), so we won't report overflows for this counter for
the forseeable future.

The unthrottle operation restores counter->hw.period_left and the
hardware counter so that we will once again report a counter overflow
after counter->hw.irq_period counts.

[ Impact: new perfcounters robustness feature on PowerPC ]

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <18971.35823.643362.446774@cargo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-05-26 09:43:59 +02:00
..
2008-12-21 14:21:16 +11:00
2008-12-21 14:21:16 +11:00
2007-05-11 05:38:25 -04:00
2008-06-30 22:31:00 +10:00
2009-03-03 13:30:03 +11:00
2008-12-31 18:07:42 -05:00
2008-05-23 22:43:11 +02:00
2008-12-21 14:21:16 +11:00
2008-11-05 22:08:28 +11:00
2009-05-15 16:43:42 +10:00
2009-05-15 16:43:42 +10:00
2009-04-02 19:04:51 -07:00
2008-12-21 14:21:16 +11:00
2007-10-11 14:36:47 +10:00