Commit 464319bf authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove add_wait_queue_cond()

It has no callers, is using the non-existent spin_lock_irqrestore(), and is
obviously very untested.  Kill.
parent 36939848
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment