summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-20 00:56:31 -0400
committerIan Moffett <ian@osmora.org>2025-08-20 00:56:31 -0400
commitc921000af6782a6a35da8e3b3482b3737c49ac23 (patch)
tree4a01f1d0ff8ada6b334f2bfbf8d3da733c02747c /sys/include
parent0972694abb1fe2137eeed3c0bdfa70eb31327c8f (diff)
kernel: exit: Panic if core is not preemptable
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/sched.h b/sys/include/sys/sched.h
index 8deef95..7bba9df 100644
--- a/sys/include/sys/sched.h
+++ b/sys/include/sys/sched.h
@@ -67,6 +67,8 @@ void sched_stat(struct sched_stat *statp);
void sched_init(void);
void sched_preempt_set(bool enable);
+bool sched_preemptable(void);
+
void sched_yield(void);
void sched_suspend(struct proc *td, const struct timeval *tv);
void sched_detach(struct proc *td);