Commit 80ec557f authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

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

Replace

set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(some_time);

with

msleep(jiffies_to_msecs(some_time));
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4e14c7c8
......@@ -859,8 +859,7 @@ static int __init pcwd_checkcard(int base_addr)
/* Not an 'ff' from a floating bus, so must be a card! */
for (i = 0; i < 4; ++i) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(HZ / 2);
msleep(500);
last_port0 = port0;
last_port1 = port1;
......
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