PM: domains: Consolidate genpd_restore_noirq() and genpd_resume_noirq()
authorShawn Guo <shawn.guo@linaro.org>
Wed, 2 Nov 2022 14:21:03 +0000 (22:21 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Nov 2022 18:40:58 +0000 (19:40 +0100)
commitd9cc34fe0aae7e9df236be046a853fc63e889026
tree8056a9fc110feb08f2a6e3c5f5d36db584dabc11
parent615db6d96c725406ae39e2822e1fbde81ecf1efd
PM: domains: Consolidate genpd_restore_noirq() and genpd_resume_noirq()

Most of the logic between genpd_restore_noirq() and genpd_resume_noirq()
are identical.  The suspended_count decrement for restore should be the
right thing to do anyway, considering there is an increment in
genpd_finish_suspend() for hibernation.  So consolidate these two
functions into genpd_finish_resume().

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