Skip to contentSkip to conversation

cobalt/intr: post proxy tick irq instead of host tick irq

PATCH New hongzha1 1 participant 1 message Oct 29, 2020

lore
Share & tools
lore

hongzha1

author
#0 lore raw

PATCH v3 6/7 cobalt/intr: post proxy tick irq instead of host tick irq

make use of dovetail proxy tick infastructure in place of host tick

---
 kernel/cobalt/intr.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
kernel/cobalt/intr.c +4 -4
index 8ffe7f2b6..36eb6c93c 100644
@@ -21,6 +21,7 @@
 #include <linux/mutex.h>
 /*#include <linux/ipipe.h>
 #include <linux/ipipe_tickdev.h>*/
+#include <linux/clockchips.h>
 #include <cobalt/kernel/sched.h>
 #include <cobalt/kernel/intr.h>
 #include <cobalt/kernel/stat.h>
@@ -188,8 +189,8 @@ void xnintr_host_tick(struct xnsched *sched) /* Interrupts off. */
 {
 	sched->lflags &= ~XNHTICK;
 #ifdef XNARCH_HOST_TICK_IRQ
-	//ipipe_post_irq_root(XNARCH_HOST_TICK_IRQ);
-#warning TODO
+	/* use proxy tick to replace host tick */
+	tick_notify_proxy();
 #endif
 }
 
@@ -205,8 +206,7 @@ void xnintr_core_clock_handler(void)
 
 	if (!xnsched_supported_cpu(cpu)) {
 #ifdef XNARCH_HOST_TICK_IRQ
-		//ipipe_post_irq_root(XNARCH_HOST_TICK_IRQ);
-#warning TODO
+		tick_notify_proxy();
 #endif
 		return;
 	}
Signature · 1 line
2.17.1