diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-07-01 07:11:51 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-01 07:11:51 -0400 |
commit | db5795547694cf68388aaf8f59723e850f7466f6 (patch) | |
tree | 9e552a91ea498c9494fe8aa940fd8c2952f87676 | |
parent | c77b042700ae1fc4d661d7d62787899e755160d5 (diff) |
[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: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-sa1100/cpu-sa1110.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-sa1100/cpu-sa1110.c b/arch/arm/mach-sa1100/cpu-sa1110.c index 8d2a89a2ea01..04c94ab6c18b 100644 --- a/arch/arm/mach-sa1100/cpu-sa1110.c +++ b/arch/arm/mach-sa1100/cpu-sa1110.c | |||
@@ -271,8 +271,7 @@ static int sa1110_target(struct cpufreq_policy *policy, | |||
271 | */ | 271 | */ |
272 | sdram_set_refresh(2); | 272 | sdram_set_refresh(2); |
273 | if (!irqs_disabled()) { | 273 | if (!irqs_disabled()) { |
274 | set_current_state(TASK_UNINTERRUPTIBLE); | 274 | msleep(20); |
275 | schedule_timeout(20 * HZ / 1000); | ||
276 | } else { | 275 | } else { |
277 | mdelay(20); | 276 | mdelay(20); |
278 | } | 277 | } |