Commit db579554 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Russell King

[PATCH] ARM: replace schedule_timeout() with msleep()

Use msleep() instead of schedule_timeout() to guarantee the task
delays as expected. Neither signals nor wait-queue events are
important at this point in the code, I believe.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c77b0427
...@@ -271,8 +271,7 @@ static int sa1110_target(struct cpufreq_policy *policy, ...@@ -271,8 +271,7 @@ static int sa1110_target(struct cpufreq_policy *policy,
*/ */
sdram_set_refresh(2); sdram_set_refresh(2);
if (!irqs_disabled()) { if (!irqs_disabled()) {
set_current_state(TASK_UNINTERRUPTIBLE); msleep(20);
schedule_timeout(20 * HZ / 1000);
} else { } else {
mdelay(20); mdelay(20);
} }
......
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