When cpuinfo.max_frequency and policy->max is different,
This causes a bug in which the frequency increases quickly
To solve this problem, always use fixed max_frequency(cpuinfo.max_frequency)
Change-Id: I362268ebd5ffdb3e3229a414752cfb93651f2656
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
{
struct cpufreq_policy *policy = sg_policy->policy;
unsigned int freq = arch_scale_freq_invariant() ?
- policy->cpuinfo.max_freq : policy->cur;
+ policy->max : policy->cur;
freq = freqvar_tipping_point(policy->cpu, freq) * util / max;