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
*
* 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>
*
......@@ -286,17 +286,14 @@ static void sonypi_camera_on(void)
for (j = 5; j > 0; j--) {
while (sonypi_call2(0x91, 0x1)) {
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1);
}
while (sonypi_call2(0x91, 0x1))
msleep(10);
sonypi_call1(0x93);
for (i = 400; i > 0; i--) {
if (sonypi_camera_ready())
break;
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1);
msleep(10);
}
if (i)
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