diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-11-09 16:39:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-11-09 16:39:39 -0500 |
commit | e6fe6649b4ec11aa3075e394b4d8743eebe1f64c (patch) | |
tree | e04e8b2206dfad58e784ea6e4550f98f318aff0b /include/linux/sched.h | |
parent | b82d9fdd848abfbe7263a4ecd9bbb55e575100a6 (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 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2cc789fef711..ee800e7a70de 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1988,6 +1988,14 @@ static inline void inc_syscw(struct task_struct *tsk) | |||
1988 | } | 1988 | } |
1989 | #endif | 1989 | #endif |
1990 | 1990 | ||
1991 | #ifdef CONFIG_SMP | ||
1992 | void migration_init(void); | ||
1993 | #else | ||
1994 | static inline void migration_init(void) | ||
1995 | { | ||
1996 | } | ||
1997 | #endif | ||
1998 | |||
1991 | #endif /* __KERNEL__ */ | 1999 | #endif /* __KERNEL__ */ |
1992 | 2000 | ||
1993 | #endif | 2001 | #endif |