mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Oops. Broke an egg. Restore wrongly removed code in mutex.c.
Nice colorful diffs reveals some lines that should NOT have been removed when !defined(HAVE_PRIORITY_SCHEDULING) in mutex_unlock. Change-Id: I4152ea864b7706217c670e1b99250b09e69c5858
This commit is contained in:
parent
528715a672
commit
030f51ce81
1 changed files with 6 additions and 0 deletions
|
@ -103,6 +103,12 @@ void mutex_unlock(struct mutex *m)
|
||||||
}
|
}
|
||||||
|
|
||||||
const int oldlevel = disable_irq_save();
|
const int oldlevel = disable_irq_save();
|
||||||
|
/* Tranfer of owning thread is handled in the wakeup protocol
|
||||||
|
* if priorities are enabled otherwise just set it from the
|
||||||
|
* queue head. */
|
||||||
|
#ifndef HAVE_PRIORITY_SCHEDULING
|
||||||
|
m->blocker.thread = thread;
|
||||||
|
#endif
|
||||||
unsigned int result = wakeup_thread(thread, WAKEUP_TRANSFER);
|
unsigned int result = wakeup_thread(thread, WAKEUP_TRANSFER);
|
||||||
restore_irq(oldlevel);
|
restore_irq(oldlevel);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue