xref: /openbmc/linux/arch/arm64/include/asm/cpuidle.h (revision 2359ccdd)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_CPUIDLE_H
3 #define __ASM_CPUIDLE_H
4 
5 #include <asm/proc-fns.h>
6 
7 #ifdef CONFIG_CPU_IDLE
8 extern int arm_cpuidle_init(unsigned int cpu);
9 extern int arm_cpuidle_suspend(int index);
10 #else
11 static inline int arm_cpuidle_init(unsigned int cpu)
12 {
13 	return -EOPNOTSUPP;
14 }
15 
16 static inline int arm_cpuidle_suspend(int index)
17 {
18 	return -EOPNOTSUPP;
19 }
20 #endif
21 #endif
22