zephyr/kernel
Peter Mitsis 19547d09f7 unified: Eliminate useless check in idle thread
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>
2016-09-23 19:53:22 +00:00
..
configs unified: initial unified kernel implementation 2016-09-13 17:12:55 -04:00
microkernel microkernel: remove deprecated task IRQs 2016-09-06 16:15:59 +00:00
nanokernel power_mgmt: Update Power Management device driver API 2016-09-22 00:23:43 +00:00
unified unified: Eliminate useless check in idle thread 2016-09-23 19:53:22 +00:00
Kconfig unified/build: allow building the unified kernel 2016-09-13 17:12:55 -04:00
Makefile unified/build: allow building the unified kernel 2016-09-13 17:12:55 -04:00