Skip to contentSkip to conversation

cobalt/timer: make use of tick-proxy instead of original host tick

PATCH In review hongzha1 1 participant 1 message Oct 20, 2020

lore
Share & tools
lore

hongzha1

author
#0 lore raw

PATCH 4/4 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.

include/cobalt/kernel/sched.h +6 -0
index d4f449e4a..7faabdcae 100644
@@ -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