Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
d64f84f6 LP |
2 | #ifndef __ASM_CPUIDLE_H |
3 | #define __ASM_CPUIDLE_H | |
4 | ||
af4819af LP |
5 | #include <asm/proc-fns.h> |
6 | ||
d64f84f6 | 7 | #ifdef CONFIG_CPU_IDLE |
c9d62161 | 8 | extern int arm_cpuidle_init(unsigned int cpu); |
af391b15 | 9 | extern int arm_cpuidle_suspend(int index); |
d64f84f6 | 10 | #else |
c9d62161 | 11 | static inline int arm_cpuidle_init(unsigned int cpu) |
d64f84f6 LP |
12 | { |
13 | return -EOPNOTSUPP; | |
14 | } | |
af3cfdbf | 15 | |
af391b15 | 16 | static inline int arm_cpuidle_suspend(int index) |
af3cfdbf LP |
17 | { |
18 | return -EOPNOTSUPP; | |
19 | } | |
d64f84f6 | 20 | #endif |
d64f84f6 | 21 | #endif |