commit | 0cff784ae41cc125368ae77f1c01328ae2fdc6b3 | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | Fri Nov 20 22:19:44 2009 +0100 |
committer | Ingo Molnar <mingo@elte.hu> | Sat Nov 21 14:11:35 2009 +0100 |
tree | 54e6f387d945d724c00bb33118ef138831a68d10 | |
parent | 453f19eea7dbad837425e9b07d84568d14898794 [diff] |
perf: Optimize some swcounter attr.sample_period==1 paths Avoid the rather expensive perf_swevent_set_period() if we know we have to sample every single event anyway. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <20091120212508.299508332@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>