zephyr/kernel
Allan Stephens 6c98c4d378 unified: Ensure delays do not time out prematurely
Ensures that all APIs which accept a timeout value wait for at least
the specified amount of time, and do not time out prematurely.

* The kernel now waits for the next system clock tick to occur before
  the timeout interval is considered to have started. (That is, the only
  way to ensure a delay of N tick intervals is to wait for N+1 ticks
  to occur.)

* Gets rid of ticks -> milliseconds -> ticks conversion in task_sleep()
  and fiber_sleep() legacy APIs, since this introduces rounding that
  -- coupled with the previous change -- can alter the number of ticks
  being requested during the sleep operation.

* Corrects work queue API that was incorrectly shown to use a delay
  measured in ticks, rather than milliseconds.

Change-Id: I8b04467237b24fb0364c8f344d872457418c18da
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-10-21 15:33:29 +00:00
..
configs unified: initial unified kernel implementation 2016-09-13 17:12:55 -04:00
microkernel power_mgmt: Reduce complexity in handling of power hooks 2016-10-05 10:05:42 +00:00
nanokernel unified: move code from nanokernel into unified kernel 2016-10-10 00:46:40 +00:00
unified unified: Ensure delays do not time out prematurely 2016-10-21 15:33:29 +00:00
Kconfig sensor: grove: use global sensor init priority 2016-10-07 20:53:29 +00:00
Makefile unified: Fix build broblem caused by concurrent make processes in single dir 2016-10-05 10:29:31 +00:00