summaryrefslogtreecommitdiff
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-02-09 05:32:37 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-02-09 05:32:37 -0800
commit655ed59f93067f1cedc6efca5d60df4dd78373ca (patch)
treea32143cecdaa938c6f42463260d0343b5979aff4 /include/linux/sched.h
parentb7517d198bc883106400f220b3cc5d0a548dde44 (diff)
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.
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
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));