diff options
| author | Ulf Hansson <ulf.hansson@linaro.org> | 2024-10-02 15:22:27 +0300 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-10-10 15:15:10 +0300 |
| commit | e130ca9d4873f8d01e3e7b8137e0c14196a3cfb4 (patch) | |
| tree | d48152ec2839bb992b27f42a6cea8630c39b4ea4 /include/linux | |
| parent | cf06fb6f0b07012cd6cf863ecb93a57773e4e16e (diff) | |
| download | linux-e130ca9d4873f8d01e3e7b8137e0c14196a3cfb4.tar.xz | |
pmdomain: core: Set the required dev for a required OPP during genpd attach
In the single PM domain case there is no need for platform code to specify
the index of the corresponding required OPP in DT, as the index must be
zero. This allows us to assign a required dev for the required OPP from
genpd, while attaching a device to its PM domain.
In this way, we can remove some of the genpd specific code in the OPP core
for the single PM domain case. Although, this cleanup is made from a
subsequent change.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20241002122232.194245-7-ulf.hansson@linaro.org
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pm_domain.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 92f9d56f623d..76775ab38898 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -252,6 +252,7 @@ struct generic_pm_domain_data { unsigned int performance_state; unsigned int default_pstate; unsigned int rpm_pstate; + unsigned int opp_token; bool hw_mode; void *data; }; |
