summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/cpuidle-psci.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2024-02-28 18:11:39 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2024-04-04 14:00:39 +0300
commitd72d7d6cf77d0f2079b7120628c9bf490de1fae2 (patch)
tree05f812b9133944247a479debbcda8d575546cc14 /drivers/cpuidle/cpuidle-psci.h
parentb1d4c60cbc31d862cbbba8e303d66528e29b4e4e (diff)
downloadlinux-d72d7d6cf77d0f2079b7120628c9bf490de1fae2.tar.xz
cpuidle: psci: Drop superfluous wrappers psci_dt_attach|detach_cpu()
To simplify the code, let's drop psci_dt_attach|detach_cpu() and use the common dt_idle_attach|detach_cpu() directly instead. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://lore.kernel.org/r/20240228151139.2650258-1-ulf.hansson@linaro.org
Diffstat (limited to 'drivers/cpuidle/cpuidle-psci.h')
-rw-r--r--drivers/cpuidle/cpuidle-psci.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/cpuidle/cpuidle-psci.h b/drivers/cpuidle/cpuidle-psci.h
index 4e132640ed64..ef004ec7a7c5 100644
--- a/drivers/cpuidle/cpuidle-psci.h
+++ b/drivers/cpuidle/cpuidle-psci.h
@@ -3,29 +3,9 @@
#ifndef __CPUIDLE_PSCI_H
#define __CPUIDLE_PSCI_H
-struct device;
struct device_node;
void psci_set_domain_state(u32 state);
int psci_dt_parse_state_node(struct device_node *np, u32 *state);
-#ifdef CONFIG_ARM_PSCI_CPUIDLE_DOMAIN
-
-#include "dt_idle_genpd.h"
-
-static inline struct device *psci_dt_attach_cpu(int cpu)
-{
- return dt_idle_attach_cpu(cpu, "psci");
-}
-
-static inline void psci_dt_detach_cpu(struct device *dev)
-{
- dt_idle_detach_cpu(dev);
-}
-
-#else
-static inline struct device *psci_dt_attach_cpu(int cpu) { return NULL; }
-static inline void psci_dt_detach_cpu(struct device *dev) { }
-#endif
-
#endif /* __CPUIDLE_PSCI_H */