pmdomain: core: Don't clear suspended_count at genpd_prepare()
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 12 Apr 2024 10:42:08 +0000 (12:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 18 Apr 2024 14:52:47 +0000 (16:52 +0200)
commit0cebf7cb2d7050703400f426e69e2c7f72c36950
treed11bf9ad73c213e8592b4f46ea710ea5ec2d123f
parent5af7f593be821eb28ce81a91aac71ccdf9dbe4d5
pmdomain: core: Don't clear suspended_count at genpd_prepare()

There is no longer any need to clear genpd->suspended_count in
genpd_prepare(), as it should be correctly incremented and decremented for
all cases. In fact, if the counter isn't correctly managed we would be
hiding a problem that we shouldn't. Therefore, let's not clear it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20240412104208.74361-2-ulf.hansson@linaro.org
drivers/pmdomain/core.c