video/sa1100fb: replace
Subsystems (2)
PATCH 1/1 video/sa1100fb: replace
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/video/sa1100fb.c +2 -4
@@ -1291,8 +1291,7 @@ static void sa1100fb_enable_controller(s#error Where is GPIO24 set as an output? Can we fit this in somewhere else?if (machine_is_graphicsclient ()) {// From ADS doc again...same as disable -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (20 *HZ /1000 ); +msleep (20 );GPSR |=GPIO_GPIO24 ; }#endif
@@ -1327,8 +1326,7 @@ static void sa1100fb_disable_controller(* We'll wait 20msec. */ GPCR |=GPIO_GPIO24 ; -set_current_state (TASK_UNINTERRUPTIBLE ); - schedule_timeout(20 * HZ / 1000); + msleep(20); }#endif #ifdef CONFIG_SA1100_HUW_WEBPANEL
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors