diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-26 14:29:07 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-26 14:31:13 -0400 |
commit | 583fc1fa5a3612f3ab73bf19b93df23bd9fa1a64 (patch) | |
tree | 363368f41e9ae4c2a23f5538cc2859557ddb98bf /sys/include | |
parent | 5bc15a222694d30f62721eecb3d99b7be006f971 (diff) |
kernel: sched: Add support for early preemption
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/sched.h | 1 | ||||
-rw-r--r-- | sys/include/sys/schedvar.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/sched.h b/sys/include/sys/sched.h index 1fa947e..6689e3b 100644 --- a/sys/include/sys/sched.h +++ b/sys/include/sys/sched.h @@ -41,6 +41,7 @@ struct proc *this_td(void); void sched_init(void); void sched_exit(void); void sched_context_switch(struct trapframe *tf); +void sched_rest(void); __noreturn void sched_init_processor(struct cpu_info *ci); diff --git a/sys/include/sys/schedvar.h b/sys/include/sys/schedvar.h index f1759b7..431a93e 100644 --- a/sys/include/sys/schedvar.h +++ b/sys/include/sys/schedvar.h @@ -31,5 +31,6 @@ #define _SYS_SCHEDVAR_H_ #define DEFAULT_TIMESLICE_USEC 3000 +#define SHORT_TIMESLICE_USEC 10 #endif /* !_SYS_SCHEDVAR_H_ */ |