1
0
Fork 0
forked from len0rd/rockbox

No need to save irq again after thread wakeup in queue_wait(_w_tmo), just disable it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29608 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-03-17 03:35:44 +00:00
parent 742980f94c
commit c1a5b66499

View file

@ -537,7 +537,7 @@ void queue_wait(struct event_queue *q, struct queue_event *ev)
corelock_unlock(&q->cl); corelock_unlock(&q->cl);
switch_thread(); switch_thread();
oldlevel = disable_irq_save(); disable_irq();
corelock_lock(&q->cl); corelock_lock(&q->cl);
} }
@ -583,7 +583,7 @@ void queue_wait_w_tmo(struct event_queue *q, struct queue_event *ev, int ticks)
switch_thread(); switch_thread();
oldlevel = disable_irq_save(); disable_irq();
corelock_lock(&q->cl); corelock_lock(&q->cl);
rd = q->read; rd = q->read;