]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rtc: fix deadlock
authorIngo Molnar <mingo@elte.hu>
Sat, 23 Aug 2008 15:59:07 +0000 (17:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 02:44:41 +0000 (19:44 -0700)
commit80ad012478ee989402ac014aab956e4534acd498
tree5b538ac1416beb89f092c5241797db7c07f6aaa5
parentf54fd05032fea1808f5e76dc8a94cde40f5d9f01
rtc: fix deadlock

commit 38c052f8cff1bd323ccfa968136a9556652ee420 upstream

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-generic/rtc.h