commit | b186303cb641ff9c42e11f2828c7369c616f7ecb | [log] [tgz] |
---|---|---|
author | Charles E. Youse <charles.youse@intel.com> | Wed May 08 13:22:46 2019 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue May 21 23:09:16 2019 -0400 |
tree | 794ca5d7732736e39462a7fd974fd4b83cbec49a | |
parent | 2f126bb51f5ce2063964754f68de0212d0760daa [diff] |
kernel/sched.c: refactor k_sleep() implementation for varied timescales Current z_impl_k_sleep() does double duty, converting between units specified by the API and ticks, as well as implementing the sleeping mechanism itself. This patch separates the API from the mechanism, so that sleeps need not be tied to millisecond timescales. Signed-off-by: Charles E. Youse <charles.youse@intel.com>