Semi-decennial update. 50% code inflation.
[cbaos.git] / arch / unix / include / sched.h
blob1149222ae675d502ef7a9ad9d3404002f67a27aa
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 #define MSEC_IN_TICKSOVF ((u32)((0x100000000LL + 1000-1) / (1000)))
26 #endif