cobalt/timer: make use of tick-proxy instead of original host tick
PATCH v3 5/7 cobalt/timer: make use of tick-proxy instead of original host tick
make use of tick-proxy which is base infastructure of pipeline to replace host tick of ipipeline.
Signed-off-by hongzha1 <[email protected]>
--- include/cobalt/kernel/sched.h | 6 +++ kernel/cobalt/timer.c | 88 +++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+)
include/cobalt/kernel/sched.h +6 -0
@@ -53,6 +53,12 @@ DECLARE_PER_CPU(struct xn_machine_cpudata, xn_machine_cpudata);#define XNINIRQ 0x00004000/* In IRQ handling context */ #define XNHDEFER 0x00002000/* Host tick deferred */ +/* +* Hardware timer is stopped. +*/ + +#define XNTSTOP 0x00008000 +struct xnsched_rt {xnsched_queue_t runnable;/*!< Runnable thread queue. */ };
kernel/cobalt/timer.c +88 -0
118 lines not on this page · raw message
Signature · 1 line
2.17.1