sched: Optimize task_sched_runtime()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 11 Nov 2013 17:21:56 +0000 (18:21 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Nov 2013 12:33:54 +0000 (13:33 +0100)
commit911b2898b3c9fe0048e9485ad1629ed4fce330fd
treeb430d3ef975f60b4c19caf211ea025cc4fa173a1
parent5eca82a9ac2c961cfbd26a4b6f43e6e3747a71dd
sched: Optimize task_sched_runtime()

Large multi-threaded apps like to hit this using do_sys_times() and
then queue up on the rq->lock.

Avoid when possible.

Larry reported ~20% performance increase his test case.

Reported-by: Larry Woodman <lwoodman@redhat.com>
Suggested-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20131111172925.GG26898@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c