mirror of
https://github.com/drasko/codezero.git
synced 2026-01-18 05:43:16 +01:00
Fix to l4_mutex_control for the unexpected sleeping with mutex held
when preemption occurs after call to wait_on_prepare
This commit is contained in:
@@ -29,6 +29,7 @@ static inline void mutex_init(struct mutex *mutex)
|
||||
int mutex_trylock(struct mutex *mutex);
|
||||
int mutex_lock(struct mutex *mutex);
|
||||
void mutex_unlock(struct mutex *mutex);
|
||||
void mutex_unlock_async(struct mutex *mutex);
|
||||
|
||||
/* NOTE: Since spinlocks guard mutex acquiring & sleeping, no locks needed */
|
||||
static inline int mutex_inc(unsigned int *cnt)
|
||||
|
||||
Reference in New Issue
Block a user