1 /* 2 * Copyright (c) 2016 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/kernel_structs.h> 9 10 #ifndef CONFIG_ARCH_HAS_CUSTOM_CPU_IDLE arch_cpu_idle(void)11void arch_cpu_idle(void) 12 { 13 /* Do nothing but unconditionally unlock interrupts and return to the 14 * caller. This CPU does not have any kind of power saving instruction. 15 */ 16 irq_unlock(NIOS2_STATUS_PIE_MSK); 17 } 18 #endif 19 20 #ifndef CONFIG_ARCH_HAS_CUSTOM_CPU_ATOMIC_IDLE arch_cpu_atomic_idle(unsigned int key)21void arch_cpu_atomic_idle(unsigned int key) 22 { 23 /* Do nothing but restore IRQ state. This CPU does not have any 24 * kind of power saving instruction. 25 */ 26 irq_unlock(key); 27 } 28 #endif 29