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:
parent
11779e3faf
commit
12b53d121e
34 changed files with 49 additions and 49 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue