diff options
| author | Ingo Molnar <mingo@elte.hu> | 2003-11-08 00:06:19 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-11-08 00:06:19 -0800 |
| commit | 0db87bc95b54f4231a60da5e4a1a6bd4dee6dad5 (patch) | |
| tree | 7d2cf6219d508d0e3926ab9ad9e26d93a1a4ddf3 /include/linux | |
| parent | ae40e4b541d19cf508e6d438c094dc781247b865 (diff) | |
[PATCH] SMP signal latency fix
The code that sends a signal needs to "kick" the target process if it
runs on another CPU and wasn't woken up by the signal to let it know
that it has a new event.
Otherwise it might take a long time until the target actually notices
and acts on the signal.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 031579e7e3fc..fbf3c753ef8a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -574,7 +574,11 @@ extern void do_timer(struct pt_regs *); extern int FASTCALL(wake_up_state(struct task_struct * tsk, unsigned int state)); extern int FASTCALL(wake_up_process(struct task_struct * tsk)); -extern int FASTCALL(wake_up_process_kick(struct task_struct * tsk)); +#ifdef CONFIG_SMP + extern void FASTCALL(kick_process(struct task_struct * tsk)); +#else + static inline void kick_process(struct task_struct *tsk) { } +#endif extern void FASTCALL(wake_up_forked_process(struct task_struct * tsk)); extern void FASTCALL(sched_exit(task_t * p)); |
