Skip to contentSkip to conversation

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

PATCH Superseded hongzha1 1 participant 1 message Oct 21, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

hongzha1

author
#0 lore raw

PATCH 1/1 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 +5 -1
index 8ffe7f2b6..67c0915ff 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>
@@ -190,6 +191,8 @@ void xnintr_host_tick(struct xnsched *sched) /* Interrupts off. */
 #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
 }
 
@@ -207,6 +210,7 @@ void xnintr_core_clock_handler(void)
 #ifdef XNARCH_HOST_TICK_IRQ
 		//ipipe_post_irq_root(XNARCH_HOST_TICK_IRQ);
 #warning TODO
+		tick_notify_proxy();
 #endif
 		return;
 	}
@@ -245,7 +249,7 @@ void xnintr_core_clock_handler(void)
 #warning TODO
 #if 0
 struct irqdisable_work {
-	struct ipipe_work_header work; /* Must be first. */
+struct ipipe_work_header work; /* Must be first. */
 	int irq;
 };
 
Signature · 1 line
2.17.1