Skip to contentSkip to conversation

Miscellanous fixes

PATCH New Con Kolivas 1 participant 1 message Nov 1, 2004

lore
Share & tools
lore
#0 lore raw

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.

kernel/sched.c +2 -2
Index: linux-2.6.10-rc1-mm2-plugsched/kernel/sched.c
===================================================================
@@ -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
Index: linux-2.6.10-rc1-mm2-plugsched/kernel/staircase.c
===================================================================
@@ -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