Skip to contentSkip to conversation

cobalt/sched: call irq_pipeline_send_remote to send TIMER_OOB_IPI

PATCH In review hongzha1 2 participants 2 messages Oct 20, 2020 – Oct 27, 2020

lore
Share & tools
lore

hongzha1

author
#0 lore raw

PATCH 1/4 cobalt/sched: call irq_pipeline_send_remote to send TIMER_OOB_IPI

call call irq_pipeline_send_remote to send TIMER_OOB_IPI instead of ipipe_send_ipi

kernel/cobalt/sched.c +2 -0
index 82a51ce93..0a40d58d7 100644
@@ -945,6 +945,8 @@ static inline int test_resched(struct xnsched *sched)
 		smp_mb();
 #warning TODO
 		//ipipe_send_ipi(IPIPE_RESCHEDULE_IPI, sched->resched);
+		irq_pipeline_send_remote(TIMER_OOB_IPI,
+				&sched->resched);
 		cpumask_clear(&sched->resched);
 	}
 #endif
Signature · 1 line
2.17.1
#1 lore raw
Quoted 10 lines · On 20.10.20 09:14, hongzha1 wrote:

call call irq_pipeline_send_remote to send TIMER_OOB_IPI instead of ipipe_send_ipi

kernel/cobalt/sched.c +0 -0
index 82a51ce93..0a40d58d7 100644

kernel/cobalt/sched.c static inline int test_resched(struct xnsched *sched) · line 949

Quoted 5 lines
kernel/cobalt/sched.c +2 -0
@@ -945,6 +945,8 @@ static inline int test_resched(struct xnsched *sched)
 		smp_mb();
 #warning TODO
 		//ipipe_send_ipi(IPIPE_RESCHEDULE_IPI, sched->resched);
+		irq_pipeline_send_remote(TIMER_OOB_IPI,
+				&sched->resched);

Same here: When done, remove the todo.

kernel/cobalt/sched.c static inline int test_resched(struct xnsched *sched) · line 952

Quoted 4 lines
kernel/cobalt/sched.c +0 -0
 		cpumask_clear(&sched->resched);
 	}
 #endif

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux