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
8extern int arm_cpuidle_init(unsigned int cpu);
9extern int arm_cpuidle_suspend(int index);
10#else
11static inline int arm_cpuidle_init(unsigned int cpu)
12{
13	return -EOPNOTSUPP;
14}
15
16static inline int arm_cpuidle_suspend(int index)
17{
18	return -EOPNOTSUPP;
19}
20#endif
21#endif
22