summaryrefslogtreecommitdiff
path: root/kern/thread.c
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.c
parent4087fd3abb6ed0672cc7e84d42ad226770542757 (diff)
x86/trap: add interrupt stacks
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 19032b25..e6875586 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -2478,6 +2478,16 @@ thread_yield(void)
}
void
+thread_schedule(void)
+{
+ if (likely(!thread_test_flag(thread_self(), THREAD_YIELD))) {
+ return;
+ }
+
+ thread_yield();
+}
+
+void
thread_schedule_intr(void)
{
struct thread_runq *runq;