From 655ed59f93067f1cedc6efca5d60df4dd78373ca Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 9 Feb 2003 05:32:37 -0800 Subject: Create "wake_up_state()" macro that selectively wakes up processes only from certain states. This simplifies "default_wake_function()", and makes it possible for signal handling to wake up only the processes it _should_ wake up without races. --- include/linux/sched.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/sched.h b/include/linux/sched.h index c5ff8e452d49..16864532fcd9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -516,6 +516,7 @@ extern unsigned long itimer_ticks; extern unsigned long itimer_next; 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 void FASTCALL(wake_up_forked_process(struct task_struct * tsk)); extern void FASTCALL(sched_exit(task_t * p)); -- cgit v1.2.3