diff options
Diffstat (limited to 'firmware/kernel/mrsw_lock.c')
-rw-r--r-- | firmware/kernel/mrsw_lock.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/firmware/kernel/mrsw_lock.c b/firmware/kernel/mrsw_lock.c index 46ab893622..45c8801b74 100644 --- a/firmware/kernel/mrsw_lock.c +++ b/firmware/kernel/mrsw_lock.c | |||
@@ -18,12 +18,8 @@ | |||
18 | * KIND, either express or implied. | 18 | * KIND, either express or implied. |
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #include <string.h> | ||
22 | #include "config.h" | ||
23 | #include "system.h" | ||
24 | #include "thread.h" | ||
25 | #include "kernel.h" | ||
26 | #include "kernel-internal.h" | 21 | #include "kernel-internal.h" |
22 | #include "mrsw-lock.h" | ||
27 | 23 | ||
28 | #ifdef HAVE_PRIORITY_SCHEDULING | 24 | #ifdef HAVE_PRIORITY_SCHEDULING |
29 | 25 | ||
@@ -45,9 +41,7 @@ mrsw_reader_relinquish(struct mrsw_lock *mrsw, struct thread_entry *current, | |||
45 | Therefore, if the queue has threads, then the next after the | 41 | Therefore, if the queue has threads, then the next after the |
46 | owning readers is a writer and this is not the last reader. */ | 42 | owning readers is a writer and this is not the last reader. */ |
47 | if (mrsw->queue) | 43 | if (mrsw->queue) |
48 | { | ||
49 | corelock_lock(&mrsw->splay.cl); | 44 | corelock_lock(&mrsw->splay.cl); |
50 | } | ||
51 | 45 | ||
52 | threadbit_clear_bit(&mrsw->splay.mask, slotnum); | 46 | threadbit_clear_bit(&mrsw->splay.mask, slotnum); |
53 | 47 | ||