浏览代码

[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>
Nishanth Aravamudan 20 年之前
父节点
当前提交
db57955476
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      arch/arm/mach-sa1100/cpu-sa1110.c

+ 1 - 2
arch/arm/mach-sa1100/cpu-sa1110.c

@@ -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);
 	}