perf_counter: Do not throttle single swcounter events
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 17 Sep 2009 16:47:11 +0000 (18:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 20:08:25 +0000 (22:08 +0200)
commit850bc73ffcc99cddfb52bc23217c60810c508853
tree787a863ccb2aaa1de48a6690b33026beadecce20
parent0ec04e16d08b69d8da46abbcfa3e3f2cd9738852
perf_counter: Do not throttle single swcounter events

We can have swcounter events that contribute more than a single
count per event, when used with a non-zero period, those can
generate multiple events, which is when we need throttling.

However, swcounter that contribute only a single count per event
can only come as fast as we can run code, hence don't throttle
them.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c