Commit 33dd9ce1 authored by Philippe Gerum's avatar Philippe Gerum

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.
parent e28d2631
......@@ -822,10 +822,12 @@ int ipipe_trap_hook(struct ipipe_trap_data *data)
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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment