]>
Commit | Line | Data |
---|---|---|
a5e0454c UH |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | ||
3 | #ifndef __CPUIDLE_PSCI_H | |
4 | #define __CPUIDLE_PSCI_H | |
5 | ||
166bf835 | 6 | struct device; |
a65a397f UH |
7 | struct device_node; |
8 | ||
9 | void psci_set_domain_state(u32 state); | |
166bf835 | 10 | int psci_dt_parse_state_node(struct device_node *np, u32 *state); |
a65a397f | 11 | |
03175619 | 12 | #ifdef CONFIG_ARM_PSCI_CPUIDLE_DOMAIN |
166bf835 UH |
13 | struct device *psci_dt_attach_cpu(int cpu); |
14 | void psci_dt_detach_cpu(struct device *dev); | |
a5e0454c | 15 | #else |
166bf835 UH |
16 | static inline struct device *psci_dt_attach_cpu(int cpu) { return NULL; } |
17 | static inline void psci_dt_detach_cpu(struct device *dev) { } | |
a5e0454c UH |
18 | #endif |
19 | ||
20 | #endif /* __CPUIDLE_PSCI_H */ |