aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 6bbe5825765a..35eafbcf5ad5 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1442,8 +1442,13 @@ int cpufreq_update_policy(unsigned int cpu)
1442 -> ask driver for current freq and notify governors about a change */ 1442 -> ask driver for current freq and notify governors about a change */
1443 if (cpufreq_driver->get) { 1443 if (cpufreq_driver->get) {
1444 policy.cur = cpufreq_driver->get(cpu); 1444 policy.cur = cpufreq_driver->get(cpu);
1445 if (data->cur != policy.cur) 1445 if (!data->cur) {
1446 cpufreq_out_of_sync(cpu, data->cur, policy.cur); 1446 dprintk("Driver did not initialize current freq");
1447 data->cur = policy.cur;
1448 } else {
1449 if (data->cur != policy.cur)
1450 cpufreq_out_of_sync(cpu, data->cur, policy.cur);
1451 }
1447 } 1452 }
1448 1453
1449 ret = __cpufreq_set_policy(data, &policy); 1454 ret = __cpufreq_set_policy(data, &policy);