diff options
author | Maulik Shah <quic_mkshah@quicinc.com> | 2023-07-03 10:55:53 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2023-08-08 16:06:20 +0200 |
commit | 9a8fa00dad3c7b260071f2f220cfb00505372c40 (patch) | |
tree | 7ca0c13aed664c7b94b88bdce010f5785814a618 /drivers/cpuidle/dt_idle_genpd.h | |
parent | Linux 6.5-rc5 (diff) | |
download | linux-9a8fa00dad3c7b260071f2f220cfb00505372c40.tar.xz linux-9a8fa00dad3c7b260071f2f220cfb00505372c40.zip |
cpuidle: dt_idle_genpd: Add helper function to remove genpd topology
Genpd parent and child domain topology created using dt_idle_pd_init_topology()
needs to be removed during error cases.
Add new helper function dt_idle_pd_remove_topology() for same.
Cc: stable@vger.kernel.org
Reviewed-by: Ulf Hanssson <ulf.hansson@linaro.org>
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/cpuidle/dt_idle_genpd.h')
-rw-r--r-- | drivers/cpuidle/dt_idle_genpd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/cpuidle/dt_idle_genpd.h b/drivers/cpuidle/dt_idle_genpd.h index a95483d08a02..3be1f70f55b5 100644 --- a/drivers/cpuidle/dt_idle_genpd.h +++ b/drivers/cpuidle/dt_idle_genpd.h @@ -14,6 +14,8 @@ struct generic_pm_domain *dt_idle_pd_alloc(struct device_node *np, int dt_idle_pd_init_topology(struct device_node *np); +int dt_idle_pd_remove_topology(struct device_node *np); + struct device *dt_idle_attach_cpu(int cpu, const char *name); void dt_idle_detach_cpu(struct device *dev); @@ -36,6 +38,11 @@ static inline int dt_idle_pd_init_topology(struct device_node *np) return 0; } +static inline int dt_idle_pd_remove_topology(struct device_node *np) +{ + return 0; +} + static inline struct device *dt_idle_attach_cpu(int cpu, const char *name) { return NULL; |