Changeset 615 for GPL/branches/uniaud32-next/lib32/waitqueue.c
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/lib32/waitqueue.c
r32 r615 38 38 //****************************************************************************** 39 39 //****************************************************************************** 40 void add_wait_queue( wait_queue_head_t *q, wait_queue_t* wait)40 void add_wait_queue(struct wait_queue_head *q, struct wait_queue_entry * wait) 41 41 { 42 42 // dprintf3(("WARNING: add_wait_queue STUB")); … … 44 44 //****************************************************************************** 45 45 //****************************************************************************** 46 void add_wait_queue_exclusive( wait_queue_head_t *q)46 void add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) 47 47 { 48 48 // dprintf3(("WARNING: add_wait_queue_exclusive STUB")); … … 50 50 //****************************************************************************** 51 51 //****************************************************************************** 52 void remove_wait_queue( wait_queue_head_t *q, wait_queue_t* wait)52 void remove_wait_queue(struct wait_queue_head *q, struct wait_queue_entry * wait) 53 53 { 54 54 // dprintf(("WARNING: remove_wait_queue STUB")); … … 75 75 //****************************************************************************** 76 76 //****************************************************************************** 77 void init_waitqueue_entry( wait_queue_t *q, struct task_struct *p)77 void init_waitqueue_entry(struct wait_queue_entry *wq_entry, struct task_struct *p) 78 78 { 79 79 // dprintf(("WARNING: init_waitqueue_entry STUB")); … … 88 88 //****************************************************************************** 89 89 //****************************************************************************** 90 /** 91 * complete: - signals a single thread waiting on this completion 92 * @x: holds the state of this particular completion 93 * 94 * This will wake up a single thread waiting on this completion. Threads will be 95 * awakened in the same order in which they were queued. 96 * 97 * See also complete_all(), wait_for_completion() and related routines. 98 * 99 * It may be assumed that this function implies a write memory barrier before 100 * changing the task state if and only if any tasks are woken up. 101 */ 102 void complete(struct completion *x) 103 { 104 unsigned long flags; 105 106 spin_lock_irqsave(&x->wait.lock, flags); 107 x->done++; 108 __wake_up_locked(&x->wait, TASK_NORMAL, 1); 109 spin_unlock_irqrestore(&x->wait.lock, flags); 110 } 111 //****************************************************************************** 112 //****************************************************************************** 113 void __wake_up_locked(wait_queue_head_t *q, unsigned int mode, int nr) 114 { 115 dprintf3(("WARNING: __wake_up_locked STUB")); 116 }
Note:
See TracChangeset
for help on using the changeset viewer.