xref: /linux/drivers/cpuidle/cpuidle-psci.h (revision 06ed6aa56ffac9241e03a24649e8d048f8f1b10c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef __CPUIDLE_PSCI_H
4 #define __CPUIDLE_PSCI_H
5 
6 struct device_node;
7 
8 void psci_set_domain_state(u32 state);
9 int __init psci_dt_parse_state_node(struct device_node *np, u32 *state);
10 
11 #ifdef CONFIG_PM_GENERIC_DOMAINS_OF
12 struct device __init *psci_dt_attach_cpu(int cpu);
13 #else
14 static inline struct device __init *psci_dt_attach_cpu(int cpu) { return NULL; }
15 #endif
16 
17 #endif /* __CPUIDLE_PSCI_H */
18