]> 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 03:23:00 +0000 (20:23 -0700)
commit459872ffa5ac2357472118b6a875758a2b11139e
tree2c2e95987baa931bc07f4f82b941bf9163a25271
parent2d5794c10db3863fb9af076195900adc15645d51
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