diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-08-31 04:27:43 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-31 04:27:43 -0700 |
| commit | 464319bfdf990e4a8defb26ffd0d946c746ea759 (patch) | |
| tree | 569f862002628fef17d506e60ba015296a07665c /include/linux/wait.h | |
| parent | 36939848228826ef2eaee23332102f169da85df7 (diff) | |
[PATCH] remove add_wait_queue_cond()
It has no callers, is using the non-existent spin_lock_irqrestore(), and is
obviously very untested. Kill.
Diffstat (limited to 'include/linux/wait.h')
| -rw-r--r-- | include/linux/wait.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/wait.h b/include/linux/wait.h index c7aeb849f389..17bdd85d7ff1 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -220,22 +220,6 @@ static inline void remove_wait_queue_locked(wait_queue_head_t *q, __remove_wait_queue(q, wait); } -#define add_wait_queue_cond(q, wait, cond) \ - ({ \ - unsigned long flags; \ - int _raced = 0; \ - spin_lock_irqsave(&(q)->lock, flags); \ - (wait)->flags = 0; \ - __add_wait_queue((q), (wait)); \ - rmb(); \ - if (!(cond)) { \ - _raced = 1; \ - __remove_wait_queue((q), (wait)); \ - } \ - spin_lock_irqrestore(&(q)->lock, flags); \ - _raced; \ - }) - /* * These are the old interfaces to sleep waiting for an event. * They are racy. DO NOT use them, use the wait_event* interfaces above. |
