[PATCH] ARM: replace schedule_timeout() with msleep()
authorNishanth Aravamudan <nacc@us.ibm.com>
Fri, 1 Jul 2005 11:11:51 +0000 (12:11 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 1 Jul 2005 11:11:51 +0000 (12:11 +0100)
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>
arch/arm/mach-sa1100/cpu-sa1110.c

index 8d2a89a2ea015d7cfdfbc3ce1a9845b4591c0cb6..04c94ab6c18b19f7eac1ffc47a5e11bfe11bed38 100644 (file)
@@ -271,8 +271,7 @@ static int sa1110_target(struct cpufreq_policy *policy,
         */
        sdram_set_refresh(2);
        if (!irqs_disabled()) {
-               set_current_state(TASK_UNINTERRUPTIBLE);
-               schedule_timeout(20 * HZ / 1000);
+               msleep(20);
        } else {
                mdelay(20);
        }