Commit a999810c authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

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

Uses msleep() instead of schedule_timeout() to guarantee the task delays at
least the desired time amount.
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 94b8577e
...@@ -412,7 +412,7 @@ static void ec3104_keyb_clear_state(void) ...@@ -412,7 +412,7 @@ static void ec3104_keyb_clear_state(void)
k->last_msr = 0; k->last_msr = 0;
for (;;) { for (;;) {
schedule_timeout(HZ/10); msleep(100);
msr = ctrl_inb(EC3104_SER4_MSR); msr = ctrl_inb(EC3104_SER4_MSR);
......
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