* [PATCH] soc: amlogic: pm-domains: use always-on flag
@ 2020-09-21 22:21 Kevin Hilman
2020-09-23 7:50 ` Neil Armstrong
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Hilman @ 2020-09-21 22:21 UTC (permalink / raw)
To: linux-amlogic; +Cc: linux-arm-kernel, Neil Armstrong
Rather than use a governor to keep these domains always-on, instead
use the flag GENPD_FLAG_ALWAYS_ON. This has the same effect, but with
much lower overhead since the governor path is not used at all.
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
---
drivers/soc/amlogic/meson-ee-pwrc.c | 4 ++--
drivers/soc/amlogic/meson-gx-pwrc-vpu.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c
index 43665b77aa9e..a8f18bb17491 100644
--- a/drivers/soc/amlogic/meson-ee-pwrc.c
+++ b/drivers/soc/amlogic/meson-ee-pwrc.c
@@ -433,8 +433,8 @@ static int meson_ee_pwrc_init_domain(struct platform_device *pdev,
if (ret)
return ret;
- ret = pm_genpd_init(&dom->base, &pm_domain_always_on_gov,
- false);
+ dom->base.flags = GENPD_FLAG_ALWAYS_ON;
+ ret = pm_genpd_init(&dom->base, NULL, false);
if (ret)
return ret;
} else {
diff --git a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
index 511b6856225d..21b4bc811c00 100644
--- a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
+++ b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
@@ -339,8 +339,8 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev)
return ret;
}
- pm_genpd_init(&vpu_pd->genpd, &pm_domain_always_on_gov,
- powered_off);
+ vpu_pd->genpd.flags = GENPD_FLAG_ALWAYS_ON;
+ pm_genpd_init(&vpu_pd->genpd, NULL, powered_off);
return of_genpd_add_provider_simple(pdev->dev.of_node,
&vpu_pd->genpd);
--
2.28.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] soc: amlogic: pm-domains: use always-on flag
2020-09-21 22:21 [PATCH] soc: amlogic: pm-domains: use always-on flag Kevin Hilman
@ 2020-09-23 7:50 ` Neil Armstrong
0 siblings, 0 replies; 2+ messages in thread
From: Neil Armstrong @ 2020-09-23 7:50 UTC (permalink / raw)
To: Kevin Hilman, linux-amlogic; +Cc: linux-arm-kernel
On 22/09/2020 00:21, Kevin Hilman wrote:
> Rather than use a governor to keep these domains always-on, instead
> use the flag GENPD_FLAG_ALWAYS_ON. This has the same effect, but with
> much lower overhead since the governor path is not used at all.
>
> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
> ---
> drivers/soc/amlogic/meson-ee-pwrc.c | 4 ++--
> drivers/soc/amlogic/meson-gx-pwrc-vpu.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c
> index 43665b77aa9e..a8f18bb17491 100644
> --- a/drivers/soc/amlogic/meson-ee-pwrc.c
> +++ b/drivers/soc/amlogic/meson-ee-pwrc.c
> @@ -433,8 +433,8 @@ static int meson_ee_pwrc_init_domain(struct platform_device *pdev,
> if (ret)
> return ret;
>
> - ret = pm_genpd_init(&dom->base, &pm_domain_always_on_gov,
> - false);
> + dom->base.flags = GENPD_FLAG_ALWAYS_ON;
> + ret = pm_genpd_init(&dom->base, NULL, false);
> if (ret)
> return ret;
> } else {
> diff --git a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
> index 511b6856225d..21b4bc811c00 100644
> --- a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
> +++ b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
> @@ -339,8 +339,8 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev)
> return ret;
> }
>
> - pm_genpd_init(&vpu_pd->genpd, &pm_domain_always_on_gov,
> - powered_off);
> + vpu_pd->genpd.flags = GENPD_FLAG_ALWAYS_ON;
> + pm_genpd_init(&vpu_pd->genpd, NULL, powered_off);
>
> return of_genpd_add_provider_simple(pdev->dev.of_node,
> &vpu_pd->genpd);
>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-23 7:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-21 22:21 [PATCH] soc: amlogic: pm-domains: use always-on flag Kevin Hilman
2020-09-23 7:50 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox