Module: xenomai-3
Branch: stable-3.0.x
Commit: 33dd9ce1b5765e3f9da6de21ea647ea3cd454ba9

Author: Philippe Gerum <>
Date:   Tue Apr 10 16:02:39 2018 +0200

cobalt: unconditionally allow idling requests

Wait for the idling interface rework from I-pipe/4.14, which will
provide more information for determining whether Cobalt should be ok
with entering the target idle state.

As a result of this change, the original kernel behavior is restored
for all ipipe-4.9.y patches with respect to entering an idle state,
including for the releases lacking commits #89146106e8 or #8d3fa22c95.

This change only affects kernels built with CONFIG_CPU_IDLE enabled.

NOTE: XNIDLE is intentionally kept for future use in the Cobalt core.


 kernel/cobalt/posix/process.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/kernel/cobalt/posix/process.c b/kernel/cobalt/posix/process.c
index 684e7e3..dbcb81e 100644
--- a/kernel/cobalt/posix/process.c
+++ b/kernel/cobalt/posix/process.c
@@ -822,10 +822,12 @@ int ipipe_trap_hook(struct ipipe_trap_data *data)
        return KEVENT_PROPAGATE;
-bool ipipe_enter_idle_hook(void) /* hw IRQs off */
+ * Legacy idle hook, unconditionally allow entering the idle state.
+ */
+bool ipipe_enter_idle_hook(void)
-       struct xnsched *sched = xnsched_current();
-       return !!(sched->lflags & XNIDLE);
+       return true;
 #ifdef CONFIG_SMP

Xenomai-git mailing list

Reply via email to