arc: remove CONFIG_NANOKERNEL code
Change-Id: I1978c067d422aebb52d736ac747443a06bd437c3 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
ee95dd22a4
commit
9b0ec51098
1 changed files with 0 additions and 18 deletions
|
@ -33,24 +33,9 @@ GTEXT(nano_cpu_idle)
|
|||
GTEXT(nano_cpu_atomic_idle)
|
||||
GDATA(nano_cpu_sleep_mode)
|
||||
|
||||
#if defined(CONFIG_NANOKERNEL) && defined(CONFIG_TICKLESS_IDLE)
|
||||
GTEXT(_power_save_idle)
|
||||
#endif
|
||||
|
||||
SECTION_VAR(BSS, nano_cpu_sleep_mode)
|
||||
.word 0
|
||||
|
||||
#if defined(CONFIG_NANOKERNEL) && defined(CONFIG_TICKLESS_IDLE)
|
||||
.macro enter_tickless_idle
|
||||
/* interrupts are locked when entering here */
|
||||
push_s blink
|
||||
jl _power_save_idle
|
||||
pop_s blink
|
||||
.endm
|
||||
#else
|
||||
#define enter_tickless_idle
|
||||
#endif
|
||||
|
||||
/*
|
||||
* @brief Put the CPU in low-power mode
|
||||
*
|
||||
|
@ -66,7 +51,6 @@ SECTION_FUNC(TEXT, nano_cpu_idle)
|
|||
jl _sys_k_event_logger_enter_sleep
|
||||
pop_s blink
|
||||
#endif
|
||||
enter_tickless_idle
|
||||
|
||||
ld r1, [nano_cpu_sleep_mode]
|
||||
or r1, r1, (1 << 4) /* set IRQ-enabled bit */
|
||||
|
@ -89,8 +73,6 @@ SECTION_FUNC(TEXT, nano_cpu_atomic_idle)
|
|||
pop_s blink
|
||||
#endif
|
||||
|
||||
enter_tickless_idle
|
||||
|
||||
ld r1, [nano_cpu_sleep_mode]
|
||||
or r1, r1, (1 << 4) /* set IRQ-enabled bit */
|
||||
sleep r1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue