kernel: add flexibility to k_cycle_get_32() definition

Some arches may want to define this as an inline function, or
define in core arch code instead of timer driver code.
Unfortunately, this means we need to remove from the footprint
tests, but this is not typically a large function.

Issue: ZEP-1546
Change-Id: Ic0d7a33507da855995838f4703d872cd613a2ca2
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-02-15 13:40:17 -08:00
commit e08d07c97d
18 changed files with 28 additions and 12 deletions

View file

@ -1094,7 +1094,7 @@ extern uint32_t k_uptime_delta_32(int64_t *reftime);
*
* @return Current hardware clock up-counter (in cycles).
*/
extern uint32_t k_cycle_get_32(void);
#define k_cycle_get_32() _arch_k_cycle_get_32()
/**
* @} end addtogroup clock_apis