diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:02 -0400 |
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 2520923a0c3b..ae1544f0a20d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1659,12 +1659,6 @@ void sched_fork(struct task_struct *p, int clone_flags) | |||
1659 | } | 1659 | } |
1660 | 1660 | ||
1661 | /* | 1661 | /* |
1662 | * After fork, child runs first. (default) If set to 0 then | ||
1663 | * parent will (try to) run first. | ||
1664 | */ | ||
1665 | unsigned int __read_mostly sysctl_sched_child_runs_first = 1; | ||
1666 | |||
1667 | /* | ||
1668 | * wake_up_new_task - wake up a newly created task for the first time. | 1662 | * wake_up_new_task - wake up a newly created task for the first time. |
1669 | * | 1663 | * |
1670 | * This function will do some initial scheduler statistics housekeeping | 1664 | * This function will do some initial scheduler statistics housekeeping |