Commit 8ea14cab authored by Stelian Pop's avatar Stelian Pop Committed by Linus Torvalds

[PATCH] sonypi: replace schedule_timeout() with msleep()

Replace schedule_timeout() with msleep() - from janitors.
Signed-off-by: default avatarStelian Pop <stelian@popies.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent acab46d0
/* /*
* Sony Programmable I/O Control Device driver for VAIO * Sony Programmable I/O Control Device driver for VAIO
* *
* Copyright (C) 2001-2004 Stelian Pop <stelian@popies.net> * Copyright (C) 2001-2005 Stelian Pop <stelian@popies.net>
* *
* Copyright (C) 2001-2002 Alcve <www.alcove.com> * Copyright (C) 2001-2002 Alcve <www.alcove.com>
* *
...@@ -286,17 +286,14 @@ static void sonypi_camera_on(void) ...@@ -286,17 +286,14 @@ static void sonypi_camera_on(void)
for (j = 5; j > 0; j--) { for (j = 5; j > 0; j--) {
while (sonypi_call2(0x91, 0x1)) { while (sonypi_call2(0x91, 0x1))
set_current_state(TASK_UNINTERRUPTIBLE); msleep(10);
schedule_timeout(1);
}
sonypi_call1(0x93); sonypi_call1(0x93);
for (i = 400; i > 0; i--) { for (i = 400; i > 0; i--) {
if (sonypi_camera_ready()) if (sonypi_camera_ready())
break; break;
set_current_state(TASK_UNINTERRUPTIBLE); msleep(10);
schedule_timeout(1);
} }
if (i) if (i)
break; break;
......
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