clock: rename z_clock_hw_cycles_per_sec_runtime_get
Do not use z_ for internal APIs, z_ is for private APIs within one subsystem only. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
59c7ecb2b4
commit
a387221f3c
2 changed files with 6 additions and 6 deletions
|
@ -27,9 +27,9 @@ extern "C" {
|
||||||
/* Exhaustively enumerated, highly optimized time unit conversion API */
|
/* Exhaustively enumerated, highly optimized time unit conversion API */
|
||||||
|
|
||||||
#if defined(CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
|
#if defined(CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
|
||||||
__syscall int z_clock_hw_cycles_per_sec_runtime_get(void);
|
__syscall int sys_clock_hw_cycles_per_sec_runtime_get(void);
|
||||||
|
|
||||||
static inline int z_impl_z_clock_hw_cycles_per_sec_runtime_get(void)
|
static inline int z_impl_sys_clock_hw_cycles_per_sec_runtime_get(void)
|
||||||
{
|
{
|
||||||
extern int z_clock_hw_cycles_per_sec;
|
extern int z_clock_hw_cycles_per_sec;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ static inline int z_impl_z_clock_hw_cycles_per_sec_runtime_get(void)
|
||||||
static TIME_CONSTEXPR inline int sys_clock_hw_cycles_per_sec(void)
|
static TIME_CONSTEXPR inline int sys_clock_hw_cycles_per_sec(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
|
#if defined(CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
|
||||||
return z_clock_hw_cycles_per_sec_runtime_get();
|
return sys_clock_hw_cycles_per_sec_runtime_get();
|
||||||
#else
|
#else
|
||||||
return CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
|
return CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -28,11 +28,11 @@ static int announce_remaining;
|
||||||
int z_clock_hw_cycles_per_sec = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
|
int z_clock_hw_cycles_per_sec = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
|
||||||
|
|
||||||
#ifdef CONFIG_USERSPACE
|
#ifdef CONFIG_USERSPACE
|
||||||
static inline int z_vrfy_z_clock_hw_cycles_per_sec_runtime_get(void)
|
static inline int z_vrfy_sys_clock_hw_cycles_per_sec_runtime_get(void)
|
||||||
{
|
{
|
||||||
return z_impl_z_clock_hw_cycles_per_sec_runtime_get();
|
return z_impl_sys_clock_hw_cycles_per_sec_runtime_get();
|
||||||
}
|
}
|
||||||
#include <syscalls/z_clock_hw_cycles_per_sec_runtime_get_mrsh.c>
|
#include <syscalls/sys_clock_hw_cycles_per_sec_runtime_get_mrsh.c>
|
||||||
#endif /* CONFIG_USERSPACE */
|
#endif /* CONFIG_USERSPACE */
|
||||||
#endif /* CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME */
|
#endif /* CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue