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:
Andy Ross 2019-10-03 11:43:10 -07:00 committed by Carles Cufí
commit 8892406c1d
53 changed files with 122 additions and 114 deletions

View file

@ -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;
}