summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-05-09 22:15:23 +0200
committerRichard Braun <rbraun@sceen.net>2017-05-10 00:06:02 +0200
commitf9af05807ab952a512619d94ec1fa260787b89c1 (patch)
treed90ff2173556e8a70d7fd25ecd28a49ca250dd28 /kern/thread.c
parent7cab94c388ac03b724c5385f8cff05d96e1a55e9 (diff)
kern/thread: remove memory barrier
The flag operations already use atomic accessors, making the barrier irrelevant.
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 12d42453..19032b25 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -110,7 +110,6 @@
#include <kern/turnstile.h>
#include <kern/work.h>
#include <machine/cpu.h>
-#include <machine/mb.h>
#include <machine/pmap.h>
#include <machine/tcb.h>
#include <vm/vm_map.h>
@@ -586,12 +585,6 @@ thread_runq_wakeup(struct thread_runq *runq, struct thread *thread)
if ((runq != thread_runq_local())
&& thread_test_flag(runq->current, THREAD_YIELD)) {
- /*
- * Make the new flags globally visible before sending the scheduling
- * request. This barrier pairs with the one implied by the received IPI.
- */
- mb_store();
-
cpu_send_thread_schedule(thread_runq_cpu(runq));
}
}