diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
commit | e7c2a72e2680827d6a733931273a93461c0d8d1b (patch) | |
tree | c9abeda78ef7504062bb2e816bcf3e3c9d680112 /include/linux/tqueue.h | |
parent | ec6044459060a8c9ce7f64405c465d141898548c (diff) |
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'include/linux/tqueue.h')
-rw-r--r-- | include/linux/tqueue.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/tqueue.h b/include/linux/tqueue.h index 45b4403a0..a5a15173a 100644 --- a/include/linux/tqueue.h +++ b/include/linux/tqueue.h @@ -57,7 +57,7 @@ typedef struct tq_struct * task_queue; #define DECLARE_TASK_QUEUE(q) task_queue q = &tq_last extern struct tq_struct tq_last; -extern task_queue tq_timer, tq_immediate; +extern task_queue tq_timer, tq_immediate, tq_scheduler; #ifdef INCLUDE_INLINE_FUNCS struct tq_struct tq_last = { @@ -143,8 +143,7 @@ _INLINE_ void run_task_queue(task_queue *list) void (*f) (void *); while(1) { - p = &tq_last; - atomic_exchange(*list,p); + p = xchg_ptr(list,&tq_last); if(p == &tq_last) break; |