cobalt/intr: post proxy tick irq instead of host tick irq
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
Signed-off-by hongzha1 <[email protected]>
kernel/cobalt/intr.c +5 -1
@@ -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