23 #ifndef _XENO_NUCLEUS_SCHED_SPORADIC_H
24 #define _XENO_NUCLEUS_SCHED_SPORADIC_H
26 #ifndef _XENO_NUCLEUS_SCHED_H
27 #error "please don't include nucleus/sched-sporadic.h directly"
30 #ifdef CONFIG_XENO_OPT_SCHED_SPORADIC
32 #include <nucleus/heap.h>
34 extern struct xnsched_class xnsched_class_sporadic;
36 struct xnsched_sporadic_repl {
41 struct xnsched_sporadic_data {
42 xnticks_t resume_date;
47 struct xntimer repl_timer;
48 struct xntimer drop_timer;
49 struct xnsched_sporadic_repl repl_data[CONFIG_XENO_OPT_SCHED_SPORADIC_MAXREPL];
50 struct xnsched_sporadic_param param;
51 struct xnthread *thread;
54 struct xnsched_sporadic {
55 #if XENO_DEBUG(NUCLEUS)
56 unsigned long drop_retries;
60 static inline int xnsched_sporadic_init_tcb(
struct xnthread *thread)