diff options
| author | Robert Love <rml@tech9.net> | 2002-06-02 20:55:19 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-02 20:55:19 -0700 |
| commit | f0245aacdf050a70345797eb7e8da74a9c16b3dc (patch) | |
| tree | 3804cee2d7b3a9ebcb3260a05d45805a3d4a730f /kernel/fork.c | |
| parent | 7723316a83dd8076af3d3b4222d972f295a9218f (diff) | |
[PATCH] remove wq_lock_t cruft
This patch removes the whole wq_lock_t abstraction, forcing the behavior
to be that of a standard spinlock and changes all the wq_lock code in
the tree appropriately.
Removes lots of code - always a Good Thing to me. New behavior is same
as previous behavior (USE_RW_WAIT_QUEUE_SPINLOCK unset).
Diffstat (limited to 'kernel/fork.c')
| -rw-r--r-- | kernel/fork.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 3a778712a98d..a4f5a991e0a5 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -53,9 +53,9 @@ void add_wait_queue(wait_queue_head_t *q, wait_queue_t * wait) unsigned long flags; wait->flags &= ~WQ_FLAG_EXCLUSIVE; - wq_write_lock_irqsave(&q->lock, flags); + spin_lock_irqsave(&q->lock, flags); __add_wait_queue(q, wait); - wq_write_unlock_irqrestore(&q->lock, flags); + spin_unlock_irqrestore(&q->lock, flags); } void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t * wait) @@ -63,18 +63,18 @@ void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t * wait) unsigned long flags; wait->flags |= WQ_FLAG_EXCLUSIVE; - wq_write_lock_irqsave(&q->lock, flags); + spin_lock_irqsave(&q->lock, flags); __add_wait_queue_tail(q, wait); - wq_write_unlock_irqrestore(&q->lock, flags); + spin_unlock_irqrestore(&q->lock, flags); } void remove_wait_queue(wait_queue_head_t *q, wait_queue_t * wait) { unsigned long flags; - wq_write_lock_irqsave(&q->lock, flags); + spin_lock_irqsave(&q->lock, flags); __remove_wait_queue(q, wait); - wq_write_unlock_irqrestore(&q->lock, flags); + spin_unlock_irqrestore(&q->lock, flags); } void __init fork_init(unsigned long mempages) |
