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:
parent
742980f94c
commit
c1a5b66499
1 changed files with 2 additions and 2 deletions
|
@ -537,7 +537,7 @@ void queue_wait(struct event_queue *q, struct queue_event *ev)
|
|||
corelock_unlock(&q->cl);
|
||||
switch_thread();
|
||||
|
||||
oldlevel = disable_irq_save();
|
||||
disable_irq();
|
||||
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();
|
||||
|
||||
oldlevel = disable_irq_save();
|
||||
disable_irq();
|
||||
corelock_lock(&q->cl);
|
||||
|
||||
rd = q->read;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue