PM: domains: Move the next_wakeup variable into the struct gpd_timing_data
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 May 2022 14:56:57 +0000 (16:56 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 May 2022 18:16:05 +0000 (20:16 +0200)
commit9c74f2ac4801473d03b0e29fab74eb94a9944521
tree272950642c0be1fbc16a1b3e53d9420f5409a41b
parent66d29d802ef3bf55a49b07568b0048823d4a72a6
PM: domains: Move the next_wakeup variable into the struct gpd_timing_data

If the corresponding genpd for the device doesn't use a governor, the
variable next_wakeup within the struct generic_pm_domain_data becomes
superfluous.

To avoid wasting memory, let's move it into the struct gpd_timing_data,
which is already being allocated based upon if there is governor assigned.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
drivers/base/power/domain_governor.c
include/linux/pm_domain.h