There is no reason to check if the idle thread is a cooperative thread before invoking k_yield(); it is safe to unconditionally invoke it every iteration. Rationale: If the idle thread is cooperative, k_yield() must be invoked to allow a new thread to get scheduled to run. If the idle thread is preemptive, then k_yield() effectively becomes a no-op. Change-Id: Ide3204c92381640b5d12b39ca0f258d56d8cc3d0 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com> |
||
|---|---|---|
| .. | ||
| configs | ||
| microkernel | ||
| nanokernel | ||
| unified | ||
| Kconfig | ||
| Makefile | ||