clock: rename z_timer_cycle_get_32 -> sys_clock_cycle_get_32

This is another API that is being used in all timer drivers and is not
internal to the clock subsystem. Remove the leading z_ and make promote
it to a cross-subsystem API.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-12 12:46:52 -05:00
commit 12b53d121e
34 changed files with 49 additions and 49 deletions

View file

@ -21,11 +21,11 @@ extern "C" {
#ifndef _ASMLANGUAGE
extern unsigned int z_arc_cpu_sleep_mode;
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
#endif

View file

@ -19,11 +19,11 @@ extern "C" {
#endif
#ifndef _ASMLANGUAGE
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
static ALWAYS_INLINE void arch_nop(void)

View file

@ -20,11 +20,11 @@ extern "C" {
#endif
#ifndef _ASMLANGUAGE
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
static ALWAYS_INLINE void arch_nop(void)

View file

@ -171,11 +171,11 @@ enum nios2_exception_cause {
BIT(NIOS2_EXCEPTION_ECC_DATA_ERR))
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
static ALWAYS_INLINE void arch_nop(void)

View file

@ -44,11 +44,11 @@ struct __esf {
typedef struct __esf z_arch_esf_t;
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
static ALWAYS_INLINE void arch_nop(void)

View file

@ -347,11 +347,11 @@ static ALWAYS_INLINE void arch_nop(void)
__asm__ volatile("nop");
}
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
#ifdef CONFIG_USERSPACE

View file

@ -92,11 +92,11 @@ static ALWAYS_INLINE void arch_nop(void)
__asm__ volatile ("nop");
}
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}

View file

@ -246,11 +246,11 @@ extern "C" {
extern void arch_irq_enable(unsigned int irq);
extern void arch_irq_disable(unsigned int irq);
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key)

View file

@ -56,11 +56,11 @@ extern void z_irq_spurious(const void *unused);
#define XTENSA_ERR_NORET
extern uint32_t z_timer_cycle_get_32(void);
extern uint32_t sys_clock_cycle_get_32(void);
static inline uint32_t arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
return sys_clock_cycle_get_32();
}
static ALWAYS_INLINE void arch_nop(void)