Skip to content
Snippets Groups Projects
Commit 74df8e69 authored by Todd Poynor's avatar Todd Poynor Committed by Dave Jones
Browse files

[CPUFREQ] S5PV210: Adjust udelay prior to voltage scaling down


Voltage scaling accesses the MAX8998 regulators over bit-banged I2C
with lots of udelays.  In the case of decreasing CPU speed, the
number of loops per us for udelay needs to be adjusted prior to
decreasing voltage to avoid delaying for up to 10X too long.

Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarJonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 5b02b779
No related branches found
No related tags found
No related merge requests found
...@@ -467,6 +467,8 @@ static int s5pv210_target(struct cpufreq_policy *policy, ...@@ -467,6 +467,8 @@ static int s5pv210_target(struct cpufreq_policy *policy,
} }
} }
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
if (freqs.new < freqs.old) { if (freqs.new < freqs.old) {
regulator_set_voltage(int_regulator, regulator_set_voltage(int_regulator,
int_volt, int_volt_max); int_volt, int_volt_max);
...@@ -475,8 +477,6 @@ static int s5pv210_target(struct cpufreq_policy *policy, ...@@ -475,8 +477,6 @@ static int s5pv210_target(struct cpufreq_policy *policy,
arm_volt, arm_volt_max); arm_volt, arm_volt_max);
} }
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
printk(KERN_DEBUG "Perf changed[L%d]\n", index); printk(KERN_DEBUG "Perf changed[L%d]\n", index);
exit: exit:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment