]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: fix deadlock
authorIngo Molnar <mingo@elte.hu>
Sat, 23 Aug 2008 15:59:07 +0000 (17:59 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 23 Aug 2008 16:02:18 +0000 (18:02 +0200)
commitbc4e76f60ea0baa518ec4a4e5cd80d81ad74f044
tree6cee3c0384438e13f065d196195a5d46a3941e4b
parent5ffab5fc62accf4061927b216523efc33638eb89
rtc: fix deadlock

if get_rtc_time() is _ever_ called with IRQs off, we deadlock badly
in it, waiting for jiffies to increment.

So make the code more robust by doing an explicit mdelay(20).

This solves a very hard to reproduce/debug hard lockup reported
by Mikael Pettersson.

Reported-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-generic/rtc.h