kernel: don't directly use deprecated sys_tick_get APIs

Change-Id: I438769018e1002d508e4a22bdd6806f77e1a1394
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-11-09 10:44:56 -08:00 committed by Anas Nashif
commit b85e58ad6d

View file

@ -51,14 +51,15 @@ int64_t _sys_clock_tick_count;
* @return the current system tick count * @return the current system tick count
* *
*/ */
uint32_t sys_tick_get_32(void) uint32_t _tick_get_32(void)
{ {
return (uint32_t)_sys_clock_tick_count; return (uint32_t)_sys_clock_tick_count;
} }
FUNC_ALIAS(_tick_get_32, sys_tick_get_32, uint32_t);
uint32_t k_uptime_get_32(void) uint32_t k_uptime_get_32(void)
{ {
return __ticks_to_ms(sys_tick_get_32()); return __ticks_to_ms(_tick_get_32());
} }
/** /**
@ -68,7 +69,7 @@ uint32_t k_uptime_get_32(void)
* @return the current system tick count * @return the current system tick count
* *
*/ */
int64_t sys_tick_get(void) int64_t _tick_get(void)
{ {
int64_t tmp_sys_clock_tick_count; int64_t tmp_sys_clock_tick_count;
/* /*
@ -83,10 +84,11 @@ int64_t sys_tick_get(void)
irq_unlock(imask); irq_unlock(imask);
return tmp_sys_clock_tick_count; return tmp_sys_clock_tick_count;
} }
FUNC_ALIAS(_tick_get, sys_tick_get, int64_t);
int64_t k_uptime_get(void) int64_t k_uptime_get(void)
{ {
return __ticks_to_ms(sys_tick_get()); return __ticks_to_ms(_tick_get());
} }
/** /**