diff options
Diffstat (limited to 'firmware/kernel/mutex.c')
-rw-r--r-- | firmware/kernel/mutex.c | 5 |
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) | |||
33 | wait_queue_init(&m->queue); | 33 | wait_queue_init(&m->queue); |
34 | m->recursion = 0; | 34 | m->recursion = 0; |
35 | blocker_init(&m->blocker); | 35 | blocker_init(&m->blocker); |
36 | #ifdef HAVE_PRIORITY_SCHEDULING | ||
37 | m->no_preempt = false; | ||
38 | #endif | ||
39 | corelock_init(&m->cl); | 36 | corelock_init(&m->cl); |
40 | } | 37 | } |
41 | 38 | ||
@@ -115,7 +112,7 @@ void mutex_unlock(struct mutex *m) | |||
115 | corelock_unlock(&m->cl); | 112 | corelock_unlock(&m->cl); |
116 | 113 | ||
117 | #ifdef HAVE_PRIORITY_SCHEDULING | 114 | #ifdef HAVE_PRIORITY_SCHEDULING |
118 | if((result & THREAD_SWITCH) && !m->no_preempt) | 115 | if(result & THREAD_SWITCH) |
119 | switch_thread(); | 116 | switch_thread(); |
120 | #endif | 117 | #endif |
121 | (void)result; | 118 | (void)result; |