Make miscellanous public
PATCH 12/28 Make miscellanous public
Make miscellanous public
Other stuff that can be public -> scheduler.c
Signed-off-by Con Kolivas <[email protected]>
kernel/sched.c +0 -18
@@ -3253,15 +3253,6 @@ static void __devinit ingo_init_idle(tas#endif } -/* -* In a system that switches off the HZ timer nohz_cpu_mask -* indicates which cpus entered this state. This is used -* in the rcu update to wait only for active cpus. For system -* which do not switch off the HZ timer nohz_cpu_mask should -* always be CPU_MASK_NONE. -*/ -cpumask_t nohz_cpu_mask =CPU_MASK_NONE ; -#ifdef CONFIG_SMP /* * This is how migration works:
@@ -4087,15 +4078,6 @@ static void __init ingo_sched_init_smp(v }#endif /* CONFIG_SMP */ -int in_sched_functions (unsigned long addr) -{ -/* Linker adds these: start and end of __sched functions */ -extern char __sched_text_start[], __sched_text_end[]; -return in_lock_functions (addr) || - (addr >= (unsigned long )__sched_text_start - && addr < (unsigned long )__sched_text_end); -} -static void __init ingo_sched_init (void ) {runqueue_t *rq;
kernel/scheduler.c +18 -0
@@ -733,6 +733,24 @@ void show_state(void)read_unlock (&tasklist_lock); } +/* +* In a system that switches off the HZ timer nohz_cpu_mask +* indicates which cpus entered this state. This is used +* in the rcu update to wait only for active cpus. For system +* which do not switch off the HZ timer nohz_cpu_mask should +* always be CPU_MASK_NONE. +*/ +cpumask_t nohz_cpu_mask =CPU_MASK_NONE ; + +int in_sched_functions (unsigned long addr) +{ +/* Linker adds these: start and end of __sched functions */ +extern char __sched_text_start[], __sched_text_end[]; +return in_lock_functions (addr) || + (addr >= (unsigned long )__sched_text_start + && addr < (unsigned long )__sched_text_end); +} +extern struct sched_drv ingo_sched_drv;static const struct sched_drv *scheduler = &ingo_sched_drv;