diff options
author | Kevin Hilman <khilman@baylibre.com> | 2020-09-21 15:21:35 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2020-09-24 09:50:01 -0700 |
commit | 5aabf1180fa9a8d876debd39a8cfb60b022019bc (patch) | |
tree | 6ff3cf0c36a8d0b752440ee9ae7e2cb0a6389def /drivers/soc/amlogic/meson-gx-pwrc-vpu.c | |
parent | 525054782a74d28503c3f585e00d9860d67d7ad1 (diff) | |
download | linux-5aabf1180fa9a8d876debd39a8cfb60b022019bc.tar.gz |
soc: amlogic: pm-domains: use always-on flag
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>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20200921222135.7145-1-khilman@baylibre.com
Diffstat (limited to 'drivers/soc/amlogic/meson-gx-pwrc-vpu.c')
-rw-r--r-- | drivers/soc/amlogic/meson-gx-pwrc-vpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |