sched: use constants if !CONFIG_SCHED_DEBUG
authorIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:02 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:02 +0000 (17:00 +0200)
commit2bd8e6d422a4f44c0994f909317eba80b0fe08a1
tree3548dd01c056e3f7c3c04fd85cc4726b95677c15
parent38ad464d410dadceda1563f36bdb0be7fe4c8938
sched: use constants if !CONFIG_SCHED_DEBUG

use constants if !CONFIG_SCHED_DEBUG.

this speeds up the code and reduces code-size:

    text    data     bss     dec     hex filename
   27464    3014      16   30494    771e sched.o.before
   26929    3010      20   29959    7507 sched.o.after

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/sched.h
kernel/sched.c
kernel/sched_fair.c