commit | 163ec4354a5135c6c38c3f4a9b46a31900ebdf48 | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | Wed Feb 16 11:22:34 2011 +0100 |
committer | Ingo Molnar <mingo@elte.hu> | Wed Feb 16 13:30:55 2011 +0100 |
tree | 59063e726453ace397c66d95cab09ac43265be41 | |
parent | 4979d2729af22f6ce8faa325fc60a85a2c2daa02 [diff] |
perf: Optimize throttling code By pre-computing the maximum number of samples per tick we can avoid a multiplication and a conditional since MAX_INTERRUPTS > max_samples_per_tick. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>