mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 08:02:34 -05:00
We had a few set_irq_level(15) left in the code, instead of the new set_irq_level(HIGHEST_IRQ_LEVEL). Only one was really used, in system_reboot(), creating a (unlikely) race condition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4374 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4cee740afa
commit
81e309dd1a
3 changed files with 4 additions and 4 deletions
|
|
@ -86,7 +86,7 @@ void queue_post(struct event_queue *q, int id, void *data)
|
|||
int wr;
|
||||
int oldlevel;
|
||||
|
||||
oldlevel = set_irq_level(15);
|
||||
oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL);
|
||||
wr = (q->write++) & QUEUE_LENGTH_MASK;
|
||||
|
||||
q->events[wr].id = id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue