import cbaos v0.1
[cbaos.git] / arch / unix / include / sched.h
blob7500f53e389166b94ee919c4566f87eb30aeb502
1 #ifndef _ARCH_SCHED_H_
2 #define _ARCH_SCHED_H_
4 #include <types.h>
6 #include <ucontext.h>
8 struct task_context {
9 ucontext_t uc;
12 typedef sigset_t sched_ctx_t;
14 static inline u32 ms2ticks(u32 msecs)
16 return msecs * 1000;
19 static inline u32 ticks2ms(u32 ticks)
21 return (ticks+999) / 1000;
24 #endif