sched: Don't call task_group() too many times in set_task_rq()
authorAndrew Vagin <avagin@openvz.org>
Fri, 11 Nov 2011 14:04:00 +0000 (17:04 +0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Nov 2011 07:48:24 +0000 (08:48 +0100)
commita3e5d1091c1298ded486aba87c22fe90cb55ea6c
tree1db19d4ad6908411d9a0eeeaa86015d3152ba31f
parentf4d6f6c2649c2c47261db4dcc3110d6f22202ea2
sched: Don't call task_group() too many times in set_task_rq()

It improves perfomance, especially if autogroup is enabled.

The size of set_task_rq() was 0x180 and now it is 0xa0.

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Acked-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1321020240-3874331-1-git-send-email-avagin@openvz.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c