Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / cpuidle / cpuidle-psci.h
blobd8e925e84c27af3d400f6f972d4ffe24dcf0c54b
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __CPUIDLE_PSCI_H
4 #define __CPUIDLE_PSCI_H
6 struct device;
7 struct device_node;
9 void psci_set_domain_state(u32 state);
10 int psci_dt_parse_state_node(struct device_node *np, u32 *state);
12 #ifdef CONFIG_ARM_PSCI_CPUIDLE_DOMAIN
13 struct device *psci_dt_attach_cpu(int cpu);
14 void psci_dt_detach_cpu(struct device *dev);
15 #else
16 static inline struct device *psci_dt_attach_cpu(int cpu) { return NULL; }
17 static inline void psci_dt_detach_cpu(struct device *dev) { }
18 #endif
20 #endif /* __CPUIDLE_PSCI_H */