Commit 8f4e769c authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

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

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 8dbc27a9
...@@ -729,8 +729,7 @@ static void restart_on_error(void) ...@@ -729,8 +729,7 @@ static void restart_on_error(void)
res_reg[1]); res_reg[1]);
} }
current->state = TASK_INTERRUPTIBLE; msleep(2000);
schedule_timeout(2 * HZ);
sony_get_toc(); sony_get_toc();
} }
...@@ -960,8 +959,7 @@ do_sony_cd_cmd(unsigned char cmd, ...@@ -960,8 +959,7 @@ do_sony_cd_cmd(unsigned char cmd,
if (((result_buffer[0] & 0xf0) == 0x20) if (((result_buffer[0] & 0xf0) == 0x20)
&& (num_retries < MAX_CDU31A_RETRIES)) { && (num_retries < MAX_CDU31A_RETRIES)) {
num_retries++; num_retries++;
current->state = TASK_INTERRUPTIBLE; msleep(100):
schedule_timeout(HZ / 10); /* Wait .1 seconds on retries */
goto retry_cd_operation; goto retry_cd_operation;
} }
......
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