Commit bcff6156 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] fix up the invalid usage of pol->policy in drv_init()

also mark it with a warning in drv_verify()
From Dominik.
parent ea9f6930
......@@ -935,6 +935,7 @@ drv_verify(struct cpufreq_policy *pol)
return -ENODEV;
}
#warning pol->policy is in undefined state here
res = find_match(&targ, &min, &max,
pol->policy == CPUFREQ_POLICY_POWERSAVE ?
SEARCH_DOWN : SEARCH_UP, 0, 0);
......@@ -954,7 +955,7 @@ drv_cpu_init(struct cpufreq_policy *pol)
return -ENODEV;
}
pol->policy = CPUFREQ_POLICY_PERFORMANCE; /* boot as fast as we can */
pol->policy = CPUFREQ_DEFAULT_GOVERNOR;
/* Take a crude guess here. */
pol->cpuinfo.transition_latency = ((rvo + 8) * vstable * VST_UNITS_20US)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment