Skip to contentSkip to conversation

arm/cpu-sa1110: replace schedule_timeout() with

PATCH New Nishanth Aravamudan 1 participant 1 message Jan 17, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/22 arm/cpu-sa1110: replace schedule_timeout() with

Hi,

Please consider applying.

Description: 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.

arch/arm/mach-sa1100/cpu-sa1110.c +1 -2
@@ -271,8 +271,7 @@ static int sa1110_target(struct cpufreq_
 	 */
 	sdram_set_refresh(2);
 	if (!irqs_disabled()) {
-		set_current_state(TASK_UNINTERRUPTIBLE);
-		schedule_timeout(20 * HZ / 1000);
+		msleep(20);
 	} else {
 		mdelay(20);
 	}

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors