Skip to content

Commit

Permalink
kernel: renamespace arch_nop()
Browse files Browse the repository at this point in the history
This is part of the core kernel -> architecture interface
and has been renamed to z_arch_nop().

Signed-off-by: Andrew Boie <[email protected]>
  • Loading branch information
Andrew Boie authored and nashif committed Sep 30, 2019
1 parent e1ec59f commit 845aa6d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion arch/x86_64/include/kernel_arch_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static inline bool z_arch_irq_unlocked(unsigned int key)
return (key & 0x200) != 0;
}

static inline void arch_nop(void)
static inline void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion include/arch/arc/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ typedef u32_t k_mem_partition_attr_t;
/**
* @brief Explicitly nop operation.
*/
static ALWAYS_INLINE void arch_nop(void)
static ALWAYS_INLINE void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion include/arch/arm/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern u32_t z_timer_cycle_get_32(void);
/**
* @brief Explicitly nop operation.
*/
static ALWAYS_INLINE void arch_nop(void)
static ALWAYS_INLINE void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion include/arch/nios2/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ extern u32_t z_timer_cycle_get_32(void);
/**
* @brief Explicitly nop operation.
*/
static ALWAYS_INLINE void arch_nop(void)
static ALWAYS_INLINE void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion include/arch/posix/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extern u32_t z_timer_cycle_get_32(void);
/**
* @brief Explicitly nop operation.
*/
static ALWAYS_INLINE void arch_nop(void)
static ALWAYS_INLINE void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion include/arch/riscv/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static ALWAYS_INLINE bool z_arch_irq_unlocked(unsigned int key)
/**
* @brief Explicitly nop operation.
*/
static ALWAYS_INLINE void arch_nop(void)
static ALWAYS_INLINE void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion include/arch/x86/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static inline u64_t z_tsc_read(void)
return rv.value;
}

static ALWAYS_INLINE void arch_nop(void)
static ALWAYS_INLINE void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion include/arch/xtensa/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ extern u32_t z_timer_cycle_get_32(void);
/**
* @brief Explicitly nop operation.
*/
static ALWAYS_INLINE void arch_nop(void)
static ALWAYS_INLINE void z_arch_nop(void)
{
__asm__ volatile("nop");
}
Expand Down
2 changes: 1 addition & 1 deletion kernel/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static void bg_thread_main(void *unused1, void *unused2, void *unused3)
void __weak main(void)
{
/* NOP default main() if the application does not provide one. */
arch_nop();
z_arch_nop();
}

/* LCOV_EXCL_STOP */
Expand Down

0 comments on commit 845aa6d

Please sign in to comment.