Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 8, 2019
1 parent 7c387a3 commit 06a79cc
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions arch/arm/core/cpu_idle.S
Expand Up @@ -21,10 +21,6 @@
_ASM_FILE_PROLOGUE _ASM_FILE_PROLOGUE


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


Expand Down Expand Up @@ -55,47 +51,6 @@ SECTION_FUNC(TEXT, z_CpuIdleInit)
str r2, [r1] str r2, [r1]
bx lr 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 * @brief Power save idle routine for ARM Cortex-M
Expand Down

0 comments on commit 06a79cc

Please sign in to comment.