Miscellanous fixes
PATCH 2/2 Miscellanous fixes
Miscellanous fixes
Miscellanous build fixes.
Because swapper becomes the idle task we have to do some magic only on SMP to make it boot.
Signed-off-by Con Kolivas <[email protected]>
kernel/sched.c +2 -2
@@ -4076,10 +4076,10 @@ static void ingo_destroy_sched_domain_sy kfree(root); }#else -static void ingo_init_sched_domain_sysctl () +static void ingo_init_sched_domain_sysctl (void ) { } -static void ingo_destroy_sched_domain_sysctl () +static void ingo_destroy_sched_domain_sysctl (void ) { }#endif
kernel/staircase.c +9 -2
@@ -3676,7 +3676,14 @@ static void __init sc_sched_init(void)* when this runqueue becomes "idle". */ init_idle (current,smp_processor_id ()); + +#ifdef CONFIG_SMP +/* +* SMP needs a little extra magic to work since we are now the idle +* task. +*/ current->u.scsched.prio =MAX_PRIO -1 ; +#endif }#if defined(CONFIG_DEBUG_KERNEL )&&defined(CONFIG_SYSCTL )&&defined(CONFIG_SMP )
@@ -3808,10 +3815,10 @@ static void sc_destroy_sched_domain_sysc kfree(root); }#else -static void sc_init_sched_domain_sysctl () +static void sc_init_sched_domain_sysctl (void ) { } -static void sc_destroy_sched_domain_sysctl () +static void sc_destroy_sched_domain_sysctl (void ) { }#endif