soc: esp32c6: remove idle source file
risc-v idle call is being fetched from arch/ implementation. This soc file is not used and can be removed. Fixes #75540 Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
bbf5183996
commit
3163680427
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/irq.h>
|
||||
#include <zephyr/arch/cpu.h>
|
||||
|
||||
/**
|
||||
* @brief Power save idle routine
|
||||
*
|
||||
* This function will be called by the kernel idle loop or possibly within
|
||||
* an implementation of _pm_save_idle in the kernel when the
|
||||
* '_pm_save_flag' variable is non-zero.
|
||||
*/
|
||||
void arch_cpu_idle(void)
|
||||
{
|
||||
/* curiously it arrives here with the interrupts masked
|
||||
* so umask it before wait for an event
|
||||
*/
|
||||
arch_irq_unlock(MSTATUS_IEN);
|
||||
|
||||
/* Wait for interrupt */
|
||||
__asm__ volatile("wfi");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue