PM: domains: Drop genpd status manipulation for hibernate restore
authorShawn Guo <shawn.guo@linaro.org>
Wed, 2 Nov 2022 14:21:01 +0000 (22:21 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Nov 2022 18:40:58 +0000 (19:40 +0100)
commit5616ce7b780af6103d7724f119514a6eb7b05f66
tree0f1eb5cbe42b992c632213fed717a206c28b1d85
parent30a0b95b1335e12efef89dd78518ed3e4a71a763
PM: domains: Drop genpd status manipulation for hibernate restore

The genpd status manipulation for hibernate restore has really never
worked as intended.  For example, if the genpd->status was GENPD_STATE_ON,
the parent domain's `sd_count` must have been increased, so it needs to
be adjusted too.  So drop this status manipulation.

Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c