summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorAgustina Arzille <avarzille@riseup.net>2017-05-16 04:18:12 -1000
committerAgustina Arzille <avarzille@riseup.net>2017-05-16 04:18:12 -1000
commite3b917f8995a5d8a0eef583443cae6faf151261f (patch)
tree99f47e4b4e59a37a8ba08eeedfec9a9b3e016421 /kern/thread.h
parent4087fd3abb6ed0672cc7e84d42ad226770542757 (diff)
x86/trap: add interrupt stacks
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/kern/thread.h b/kern/thread.h
index ee58c43f..62708268 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -394,20 +394,8 @@ thread_self(void)
* Main scheduler invocation call.
*
* Called on return from interrupt or when reenabling preemption.
- *
- * Implies a compiler barrier.
*/
-static inline void
-thread_schedule(void)
-{
- barrier();
-
- if (likely(!thread_test_flag(thread_self(), THREAD_YIELD))) {
- return;
- }
-
- thread_yield();
-}
+void thread_schedule(void);
/*
* Sleep queue lending functions.