diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2009-09-17 11:44:30 +0800 |
---|---|---|
committer | Wu Zhangjin <wuzhangjin@gmail.com> | 2010-03-10 04:38:57 +0800 |
commit | 605b0999f333b2e5a6361207173725b2bfa2df52 (patch) | |
tree | 72f903fed8b8f38113d3bf4f696cf172d1fcde79 | |
parent | f892b149b98479d18f78275a7cd36aaa8fb91c72 (diff) | |
download | linux-rt-605b0999f333b2e5a6361207173725b2bfa2df52.tar.gz |
RT: kernel/sched.c: Fixup of "implicit declaration of function '_finish_arch_switch'"
This patch fixes the following error:
kernel/sched.c: In function 'finish_task_switch':
kernel/sched.c:2979: error: implicit declaration of function
'_finish_arch_switch'
The following archs have defined their finish_arch_switch:
$ grep finish_arch_switch -ur arch/
arch/s390/include/asm/system.h:#define finish_arch_switch(prev)
arch/sh/include/asm/system_32.h:#define finish_arch_switch(prev
arch/avr32/include/asm/system.h:#define finish_arch_switch(prev)
arch/mips/include/asm/system.h:#define finish_arch_switch(prev)
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index aaa99187cd09..1bd521b42533 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -919,6 +919,8 @@ static inline u64 global_rt_runtime(void) #endif #ifndef finish_arch_switch # define _finish_arch_switch(prev) do { } while (0) +#else +# define _finish_arch_switch finish_arch_switch #endif static inline int task_current(struct rq *rq, struct task_struct *p) |