diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 28e59a48b35f..8ae655c364f4 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -1698,15 +1698,18 @@ void cpufreq_resume(void) | |||
1698 | || __cpufreq_governor(policy, CPUFREQ_GOV_LIMITS)) | 1698 | || __cpufreq_governor(policy, CPUFREQ_GOV_LIMITS)) |
1699 | pr_err("%s: Failed to start governor for policy: %p\n", | 1699 | pr_err("%s: Failed to start governor for policy: %p\n", |
1700 | __func__, policy); | 1700 | __func__, policy); |
1701 | |||
1702 | /* | ||
1703 | * schedule call cpufreq_update_policy() for boot CPU, i.e. last | ||
1704 | * policy in list. It will verify that the current freq is in | ||
1705 | * sync with what we believe it to be. | ||
1706 | */ | ||
1707 | if (list_is_last(&policy->policy_list, &cpufreq_policy_list)) | ||
1708 | schedule_work(&policy->update); | ||
1709 | } | 1701 | } |
1702 | |||
1703 | /* | ||
1704 | * schedule call cpufreq_update_policy() for first-online CPU, as that | ||
1705 | * wouldn't be hotplugged-out on suspend. It will verify that the | ||
1706 | * current freq is in sync with what we believe it to be. | ||
1707 | */ | ||
1708 | policy = cpufreq_cpu_get_raw(cpumask_first(cpu_online_mask)); | ||
1709 | if (WARN_ON(!policy)) | ||
1710 | return; | ||
1711 | |||
1712 | schedule_work(&policy->update); | ||
1710 | } | 1713 | } |
1711 | 1714 | ||
1712 | /** | 1715 | /** |