Char: ds1286, eliminate busy waiting
authorJiri Slaby <jirislaby@gmail.com>
Thu, 16 Oct 2008 05:04:17 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:47 +0000 (11:21 -0700)
commitd05abab9a47d3245664eee413769af2e1e4b1faf
tree85f2e23054300fc6b661e8522ab3b4e6a1fc036f
parent4cea5ceb4c692ff42a2848f1b559977caff3c64e
Char: ds1286, eliminate busy waiting

ds1286_get_time(); is not called from atomic context, sleep for 20 ms is
better choice than a (home-made) busy waiting for such a situation.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ds1286.c