kernel/sys_clock.h: Deprecate and convert uses of old conversions
Mark the old time conversion APIs deprecated, leave compatibility macros in place, and replace all usage with the new API. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
f2b75fd644
commit
8892406c1d
53 changed files with 122 additions and 114 deletions
|
@ -104,7 +104,7 @@ static inline int high_timer_overflow(void)
|
|||
/* Check if the time elapsed in msec is sufficient to trigger an
|
||||
* overflow of the high precision timer
|
||||
*/
|
||||
if (tCheck >= (SYS_CLOCK_HW_CYCLES_TO_NS64(UINT_MAX) /
|
||||
if (tCheck >= (k_cyc_to_ns_floor64(UINT_MAX) /
|
||||
(NSEC_PER_USEC * USEC_PER_MSEC))) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue