summaryrefslogtreecommitdiff
path: root/firmware/kernel/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/kernel/mutex.c')
-rw-r--r--firmware/kernel/mutex.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/firmware/kernel/mutex.c b/firmware/kernel/mutex.c
index 876b704b51..cb9e6816b8 100644
--- a/firmware/kernel/mutex.c
+++ b/firmware/kernel/mutex.c
@@ -33,9 +33,6 @@ void mutex_init(struct mutex *m)
wait_queue_init(&m->queue);
m->recursion = 0;
blocker_init(&m->blocker);
-#ifdef HAVE_PRIORITY_SCHEDULING
- m->no_preempt = false;
-#endif
corelock_init(&m->cl);
}
@@ -115,7 +112,7 @@ void mutex_unlock(struct mutex *m)
corelock_unlock(&m->cl);
#ifdef HAVE_PRIORITY_SCHEDULING
- if((result & THREAD_SWITCH) && !m->no_preempt)
+ if(result & THREAD_SWITCH)
switch_thread();
#endif
(void)result;