summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-03-17 03:35:44 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-03-17 03:35:44 +0000
commitc1a5b6649941e2bcb470e0f4532ea2f69cc48593 (patch)
tree1eceb5bdd5b0c5d2b763ae130d03b0b418444fb9
parent742980f94c4018bb38e09f2437dd708d4ecda2b3 (diff)
downloadrockbox-c1a5b6649941e2bcb470e0f4532ea2f69cc48593.tar.gz
rockbox-c1a5b6649941e2bcb470e0f4532ea2f69cc48593.zip
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
-rw-r--r--firmware/kernel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index e0879a3c59..4fcfcb9d30 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -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;