aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-09 16:39:39 -0500
committerIngo Molnar <mingo@elte.hu>2007-11-09 16:39:39 -0500
commite6fe6649b4ec11aa3075e394b4d8743eebe1f64c (patch)
treee04e8b2206dfad58e784ea6e4550f98f318aff0b /init
parentb82d9fdd848abfbe7263a4ecd9bbb55e575100a6 (diff)
sched: proper prototype for kernel/sched.c:migration_init()
This patch adds a proper prototype for migration_init() in include/linux/sched.h Since there's no point in always returning 0 to a caller that doesn't check the return value it also changes the function to return void. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init')
-rw-r--r--init/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c
index f605a969ea61..80b04b6c5157 100644
--- a/init/main.c
+++ b/init/main.c
@@ -56,6 +56,7 @@
56#include <linux/pid_namespace.h> 56#include <linux/pid_namespace.h>
57#include <linux/device.h> 57#include <linux/device.h>
58#include <linux/kthread.h> 58#include <linux/kthread.h>
59#include <linux/sched.h>
59 60
60#include <asm/io.h> 61#include <asm/io.h>
61#include <asm/bugs.h> 62#include <asm/bugs.h>
@@ -747,11 +748,8 @@ __setup("nosoftlockup", nosoftlockup_setup);
747static void __init do_pre_smp_initcalls(void) 748static void __init do_pre_smp_initcalls(void)
748{ 749{
749 extern int spawn_ksoftirqd(void); 750 extern int spawn_ksoftirqd(void);
750#ifdef CONFIG_SMP
751 extern int migration_init(void);
752 751
753 migration_init(); 752 migration_init();
754#endif
755 spawn_ksoftirqd(); 753 spawn_ksoftirqd();
756 if (!nosoftlockup) 754 if (!nosoftlockup)
757 spawn_softlockup_task(); 755 spawn_softlockup_task();