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 
arch_cpu_idle(void)10 void arch_cpu_idle(void)
11 {
12 	/* Do nothing but unconditionally unlock interrupts and return to the
13 	 * caller. This CPU does not have any kind of power saving instruction.
14 	 */
15 	irq_unlock(NIOS2_STATUS_PIE_MSK);
16 }
17 
arch_cpu_atomic_idle(unsigned int key)18 void arch_cpu_atomic_idle(unsigned int key)
19 {
20 	/* Do nothing but restore IRQ state. This CPU does not have any
21 	 * kind of power saving instruction.
22 	 */
23 	irq_unlock(key);
24 }
25