Changeset 479 for GPL/trunk/lib32/misc.c
- Timestamp:
- May 1, 2010, 9:49:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/misc.c
r445 r479 46 46 mem_map_t *mem_map = 0; 47 47 int this_module[64] = {0}; 48 48 49 49 #include <stdarg.h> 50 50 … … 64 64 65 65 char *pszLastALSAError; 66 66 67 67 pszLastALSAError= iLastError ? szLastALSAError2 : szLastALSAError1; 68 68 … … 75 75 DebugInt3(); 76 76 } 77 77 78 78 dprintf( (pszLastALSAError) ); 79 79 if(++iLastError > 1) { … … 240 240 } 241 241 return 0; 242 } 243 //****************************************************************************** 244 //****************************************************************************** 245 static void run_workqueue(struct workqueue_struct *wq) 246 { 247 unsigned long flags; 248 249 spin_lock_irqsave(&wq->lock, flags); 250 while (!list_empty(&wq->worklist)) { 251 struct work_struct *work = list_entry(wq->worklist.next, 252 struct work_struct, entry); 253 void (*f) (void *) = work->func; 254 void *data = work->data; 255 256 list_del_init(wq->worklist.next); 257 spin_unlock_irqrestore(&wq->lock, flags); 258 clear_bit(0, &work->pending); 259 f(data); 260 spin_lock_irqsave(&wq->lock, flags); 261 wake_up(&wq->work_done); 262 } 263 spin_unlock_irqrestore(&wq->lock, flags); 242 264 } 243 265 //****************************************************************************** … … 263 285 spin_unlock_irq(&wq->lock); 264 286 } 265 }266 //******************************************************************************267 //******************************************************************************268 static void run_workqueue(struct workqueue_struct *wq)269 {270 unsigned long flags;271 272 spin_lock_irqsave(&wq->lock, flags);273 while (!list_empty(&wq->worklist)) {274 struct work_struct *work = list_entry(wq->worklist.next,275 struct work_struct, entry);276 void (*f) (void *) = work->func;277 void *data = work->data;278 279 list_del_init(wq->worklist.next);280 spin_unlock_irqrestore(&wq->lock, flags);281 clear_bit(0, &work->pending);282 f(data);283 spin_lock_irqsave(&wq->lock, flags);284 wake_up(&wq->work_done);285 }286 spin_unlock_irqrestore(&wq->lock, flags);287 287 } 288 288 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.