aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2011-02-15 11:41:46 +0000
committerIngo Molnar <[email protected]>2011-02-16 12:30:57 +0000
commitba3dd36c6775264ee6e7354ba1aabcd6e86d7298 (patch)
treef48441ff3179a91b4acde6c785726a34e6dc856a /tools/perf/util/annotate.c
parentperf: Optimize throttling code (diff)
downloadkernel-ba3dd36c6775264ee6e7354ba1aabcd6e86d7298.tar.gz
kernel-ba3dd36c6775264ee6e7354ba1aabcd6e86d7298.zip
perf: Optimize hrtimer events
There is no need to re-initialize the hrtimer every time we start it, so don't do that (shaves a few cycles). Also, since we know hrtimers run at a fixed rate (nanoseconds) we can pre-compute the desired frequency at which they tick. This avoids us having to go through the whole adaptive frequency feedback logic (shaves another few cycles). Signed-off-by: Peter Zijlstra <[email protected]> LKML-Reference: <1297448589.5226.47.camel@laptop> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions