vkernel - Avoid unnecessarily short sleeps, when not using precise timers.
authorImre Vadász <imre@vdsz.com>
Thu, 24 Aug 2017 20:50:11 +0000 (22:50 +0200)
committerImre Vadász <imre@vdsz.com>
Sat, 26 Aug 2017 10:46:45 +0000 (12:46 +0200)
commit2942cd4efadf27f772c73fed1345f710ab92ac66
treed0242feb3c27f9e62ff2f7a69f6adc82df0aff35
parent58d03237ee3f10a77dd26bf7c946498bed2a12e6
vkernel - Avoid unnecessarily short sleeps, when not using precise timers.

* When use_precise_timer is disabled, it doesn't make sense to sleep for
  a short time in the systimer thread, since our time measurements wouldn't
  have the necessary precision to make use of this in the first place.

* Since the CLOCK_MONOTONIC_FAST timer has a precision corresponding to the
  tick period of the host, use 1/10 of this value as the minimum sleep
  duration.
sys/platform/vkernel64/platform/systimer.c