treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / include / asm / cpuidle.h
blob3c5ddb429ea29bc925d959d2b382e59bca6a885f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_CPUIDLE_H
3 #define __ASM_CPUIDLE_H
5 #include <asm/proc-fns.h>
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)
13 return -EOPNOTSUPP;
16 static inline int arm_cpuidle_suspend(int index)
18 return -EOPNOTSUPP;
20 #endif
21 #endif