mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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>
This commit is contained in:
parent
b82d9fdd84
commit
e6fe6649b4
3 changed files with 10 additions and 6 deletions
|
@ -56,6 +56,7 @@
|
|||
#include <linux/pid_namespace.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/kthread.h>
|
||||
#include <linux/sched.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <asm/bugs.h>
|
||||
|
@ -747,11 +748,8 @@ __setup("nosoftlockup", nosoftlockup_setup);
|
|||
static void __init do_pre_smp_initcalls(void)
|
||||
{
|
||||
extern int spawn_ksoftirqd(void);
|
||||
#ifdef CONFIG_SMP
|
||||
extern int migration_init(void);
|
||||
|
||||
migration_init();
|
||||
#endif
|
||||
spawn_ksoftirqd();
|
||||
if (!nosoftlockup)
|
||||
spawn_softlockup_task();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue