diff options
author | Russell King <rmk@flint.arm.linux.org.uk> | 2004-08-06 19:55:39 +0100 |
---|---|---|
committer | Russell King <rmk@flint.arm.linux.org.uk> | 2004-08-06 19:55:39 +0100 |
commit | 4f1175ec436ad0b130085ede578a07d3af867a4b (patch) | |
tree | c128f9de5f1058e71b9d20fb78c30cd6f996aad4 /drivers | |
parent | 776279eca353222f99d3e3d8831a3a28ba71bbe1 (diff) | |
download | history-4f1175ec436ad0b130085ede578a07d3af867a4b.tar.gz |
[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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/sa1100fb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c index a15f0c4302aa2d..ae8fb7aef251dc 100644 --- a/drivers/video/sa1100fb.c +++ b/drivers/video/sa1100fb.c @@ -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? 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(struct sa1100fb_info *fbi) * 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 |