diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 17:00:02 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 17:00:02 +0200 |
commit | 2bd8e6d422a4f44c0994f909317eba80b0fe08a1 (patch) | |
tree | 3548dd01c056e3f7c3c04fd85cc4726b95677c15 /kernel/sched.c | |
parent | 38ad464d410dadceda1563f36bdb0be7fe4c8938 (diff) |
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>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 2520923a0c3..ae1544f0a20 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1659,12 +1659,6 @@ void sched_fork(struct task_struct *p, int clone_flags) } /* - * After fork, child runs first. (default) If set to 0 then - * parent will (try to) run first. - */ -unsigned int __read_mostly sysctl_sched_child_runs_first = 1; - -/* * wake_up_new_task - wake up a newly created task for the first time. * * This function will do some initial scheduler statistics housekeeping |