Skip to content
Permalink
Browse files

arch: arm: cpu_idle: Remove unused functions

Since commit c535300 ("drivers/timer: New ARM SysTick driver"),
_NanoIdleValGet and _NanoIdleValClear have been unused.

Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
  • Loading branch information...
Bradley Bolen authored and ioannisg committed Aug 5, 2019
1 parent 7c387a3 commit 06a79cc82ef83df70d33ca19a6c84f746865481f
Showing with 0 additions and 45 deletions.
  1. +0 −45 arch/arm/core/cpu_idle.S
@@ -21,10 +21,6 @@
_ASM_FILE_PROLOGUE

GTEXT(z_CpuIdleInit)
#ifdef CONFIG_SYS_POWER_MANAGEMENT
GTEXT(_NanoIdleValGet)
GTEXT(_NanoIdleValClear)
#endif
GTEXT(k_cpu_idle)
GTEXT(k_cpu_atomic_idle)

@@ -55,47 +51,6 @@ SECTION_FUNC(TEXT, z_CpuIdleInit)
str r2, [r1]
bx lr

#ifdef CONFIG_SYS_POWER_MANAGEMENT

/**
*
* @brief Get the kernel idle setting
*
* Returns the kernel idle setting, in ticks. Only called by __systick().
*
* @return the requested number of ticks for the kernel to be idle
*
* C function prototype:
*
* s32_t _NanoIdleValGet (void);
*/

SECTION_FUNC(TEXT, _NanoIdleValGet)
ldr r0, =_kernel
ldr r0, [r0, #_kernel_offset_to_idle]
bx lr

/**
*
* @brief Clear the kernel idle setting
*
* Sets the kernel idle setting to 0. Only called by __systick().
*
* @return N/A
*
* C function prototype:
*
* void _NanoIdleValClear (void);
*/

SECTION_FUNC(TEXT, _NanoIdleValClear)
ldr r0, =_kernel
eors.n r1, r1
str r1, [r0, #_kernel_offset_to_idle]
bx lr

#endif /* CONFIG_SYS_POWER_MANAGEMENT */

/**
*
* @brief Power save idle routine for ARM Cortex-M

0 comments on commit 06a79cc

Please sign in to comment.
You can’t perform that action at this time.