Merge tag 'mmc-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[sfrench/cifs-2.6.git] / arch / arm64 / include / asm / cpuidle.h
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