sched: Micro-optimize by dropping unnecessary task_rq() calls
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 22 Sep 2013 14:20:54 +0000 (17:20 +0300)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Sep 2013 11:51:06 +0000 (13:51 +0200)
commit4314895165623879937f46d767673654662b570c
treef2927ee7e93b788541dae19af0cb4070ce3d85c4
parentf48627e686a69f5215cb0761e731edb3d9859dd9
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 <mst@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20130922142054.GA11499@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/stats.h