Commit 4f1175ec authored by Russell King's avatar Russell King

[FB] replace schedule_timeout() with msleep()

Patch from: Nishanth Aravamudan

Use msleep() instead of schedule_timeout() to
guarantee the task delays for the desired time.

Signed-off-by: Nishanth Aravamudan
Signed-off-by: Russell King
parent 776279ec
...@@ -1291,8 +1291,7 @@ static void sa1100fb_enable_controller(struct sa1100fb_info *fbi) ...@@ -1291,8 +1291,7 @@ static void sa1100fb_enable_controller(struct sa1100fb_info *fbi)
#error Where is GPIO24 set as an output? Can we fit this in somewhere else? #error Where is GPIO24 set as an output? Can we fit this in somewhere else?
if (machine_is_graphicsclient()) { if (machine_is_graphicsclient()) {
// From ADS doc again...same as disable // From ADS doc again...same as disable
set_current_state(TASK_UNINTERRUPTIBLE); msleep(20);
schedule_timeout(20 * HZ / 1000);
GPSR |= GPIO_GPIO24; GPSR |= GPIO_GPIO24;
} }
#endif #endif
...@@ -1327,8 +1326,7 @@ static void sa1100fb_disable_controller(struct sa1100fb_info *fbi) ...@@ -1327,8 +1326,7 @@ static void sa1100fb_disable_controller(struct sa1100fb_info *fbi)
* We'll wait 20msec. * We'll wait 20msec.
*/ */
GPCR |= GPIO_GPIO24; GPCR |= GPIO_GPIO24;
set_current_state(TASK_UNINTERRUPTIBLE); msleep(20);
schedule_timeout(20 * HZ / 1000);
} }
#endif #endif
#ifdef CONFIG_SA1100_HUW_WEBPANEL #ifdef CONFIG_SA1100_HUW_WEBPANEL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment