Go to file
Benjamin Walsh 2858cbf829 idle: fix tasks waiting when NANO_TIMEOUTS is enabled
Fix an issue where, if a task is pending on a nano timeout, the duration
it wants to wait is not taken into account by the tickless idle code.
This could cause a system to wait forever, or to the limit of the timer
hardware (which is forever, for all intents and purposes).

This fix is to add one field in the nanokernel data structure for one
task to record the amount of ticks it will wait on a nano timeout. Only
one task has to be able to record this information, since, these waits
being looping busy waits, the task of highest priority is the only task
that can be actively waiting with a nano timeout. If a task of lower
priority was previously waiting, and a new task is now waiting, it means
that the wait of the original task has been interrupted, which will
cause said task to run the busy loop on the object again when it gets
scheduled, and the number of ticks it wants to wait has to be recomputed
and recorded again.

Change-Id: Ibcf0f288fc42d96897642cfee00ab7359716703f
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05 20:25:24 -05:00
arch idle: fix tasks waiting when NANO_TIMEOUTS is enabled 2016-02-05 20:25:24 -05:00
boards boards: Quark SE based boards have a different SPI interrupt flag 2016-02-05 20:25:23 -05:00
doc device: rename synchronous_call_ APIs 2016-02-05 20:25:24 -05:00
drivers device: rename synchronous_call_ APIs 2016-02-05 20:25:24 -05:00
include device: rename 'caller' field of device_sync_call_t 2016-02-05 20:25:24 -05:00
kernel idle: fix tasks waiting when NANO_TIMEOUTS is enabled 2016-02-05 20:25:24 -05:00
lib
misc build: Add C++ support 2016-02-05 20:25:23 -05:00
net net: Ensure stacks are properly aligned 2016-02-05 20:25:23 -05:00
samples samples: Ensure stacks are properly aligned 2016-02-05 20:25:23 -05:00
scripts toolchain: remove yocto variant, now using zephyr variant 2016-02-05 20:25:23 -05:00
.checkpatch.conf
.gitattributes
.gitignore
.mailmap
Kbuild
Kconfig
Kconfig.zephyr
LICENSE
Makefile build: Add C++ support 2016-02-05 20:25:23 -05:00
Makefile.inc
zephyr-env.sh