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>
This commit is contained in:
@@ -1658,12 +1658,6 @@ void sched_fork(struct task_struct *p, int clone_flags)
|
||||
put_cpu();
|
||||
}
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user