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

@ -129,7 +129,7 @@ between two points in time.
/* compute how long the work took (assumes no counter rollover) */
cycles_spent = stop_time - start_time;
nanoseconds_spent = SYS_CLOCK_HW_CYCLES_TO_NS(cycles_spent);
nanoseconds_spent = (u32_t)k_cyc_to_ns_floor64(cycles_spent);
Suggested Uses
**************