[PATCH] char/ds1620: use msleep() instead of schedule_timeout()

Not sure why any driver needs to sleep for *two* ticks, so let's fix it.

Use msleep() instead of schedule_timeout() to guarantee the task delays as
expected. Signals are never checked for by the callers or in the function
itself, so use TASK_UNINTERRUPTIBLE instead of TASK_INTERRUPTIBLE. The
delay is presumed to have been written when HZ==100, and thus has been
multiplied by 10 to pass to msleep().

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Acked-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Domen Puncer and committed by Linus Torvalds d8eddb62 d2a457cf

+1 -2
+1 -2
drivers/char/ds1620.c
··· 163 163 netwinder_ds1620_reset(); 164 164 netwinder_unlock(&flags); 165 165 166 - set_current_state(TASK_INTERRUPTIBLE); 167 - schedule_timeout(2); 166 + msleep(20); 168 167 } 169 168 170 169 static unsigned int ds1620_in(int cmd, int bits)