aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2013-12-16 05:57:10 -0800
committerPaul E. McKenney <[email protected]>2014-02-25 12:39:00 -0800
commitd550e81dc0ddc04f1b417c179c214103a28e0ee8 (patch)
treea873c6b1a980500c59af7b194374d604e3dba1eb /tools/perf/util/trace-event-scripting.c
parentfff421580f512fc044cc7421fdff31a7a6997350 (diff)
timers: Reduce __run_timers() latency for empty list
The __run_timers() function currently steps through the list one jiffy at a time in order to update the timer wheel. However, if the timer wheel is empty, no adjustment is needed other than updating ->timer_jiffies. In this case, which is likely to be common for NO_HZ_FULL kernels, the kernel currently incurs a large latency for no good reason. This commit therefore short-circuits this case. Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Josh Triplett <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Reviewed-by: Oleg Nesterov <[email protected]> Reviewed-by: Steven Rostedt <[email protected]> Tested-by: Mike Galbraith <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions