diff options
| author | Ulf Hansson <ulf.hansson@linaro.org> | 2022-05-11 16:56:57 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-05-19 20:16:05 +0200 |
| commit | 9c74f2ac4801473d03b0e29fab74eb94a9944521 (patch) | |
| tree | 272950642c0be1fbc16a1b3e53d9420f5409a41b /drivers/base/power/domain_governor.c | |
| parent | 66d29d802ef3bf55a49b07568b0048823d4a72a6 (diff) | |
| download | linux-9c74f2ac4801473d03b0e29fab74eb94a9944521.tar.gz linux-9c74f2ac4801473d03b0e29fab74eb94a9944521.tar.bz2 linux-9c74f2ac4801473d03b0e29fab74eb94a9944521.zip | |
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>
Diffstat (limited to 'drivers/base/power/domain_governor.c')
| -rw-r--r-- | drivers/base/power/domain_governor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/domain_governor.c b/drivers/base/power/domain_governor.c index 62be9b3f8c90..599b3909821c 100644 --- a/drivers/base/power/domain_governor.c +++ b/drivers/base/power/domain_governor.c @@ -139,7 +139,7 @@ static void update_domain_next_wakeup(struct generic_pm_domain *genpd, ktime_t n * is able to enter its optimal idle state. */ list_for_each_entry(pdd, &genpd->dev_list, list_node) { - next_wakeup = to_gpd_data(pdd)->next_wakeup; + next_wakeup = to_gpd_data(pdd)->td->next_wakeup; if (next_wakeup != KTIME_MAX && !ktime_before(next_wakeup, now)) if (ktime_before(next_wakeup, domain_wakeup)) domain_wakeup = next_wakeup; |
