From: Michael S. Tsirkin Date: Sun, 22 Sep 2013 14:20:54 +0000 (+0300) Subject: sched: Micro-optimize by dropping unnecessary task_rq() calls X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~40^2~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4314895165623879937f46d767673654662b570c;p=pandora-kernel.git sched: Micro-optimize by dropping unnecessary task_rq() calls We always know the rq used, let's just pass it around. This seems to cut the size of scheduler core down a tiny bit: Before: [linux]$ size kernel/sched/core.o.orig text data bss dec hex filename 62760 16130 3876 82766 1434e kernel/sched/core.o.orig After: [linux]$ size kernel/sched/core.o.patched text data bss dec hex filename 62566 16130 3876 82572 1428c kernel/sched/core.o.patched Probably speeds it up as well. Signed-off-by: Michael S. Tsirkin Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20130922142054.GA11499@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed