]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86: fix freeze in x86_64 RTC update code in time_64.c
authorDavid P. Reed <dpreed@reed.com>
Wed, 14 Nov 2007 22:47:35 +0000 (17:47 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Nov 2007 17:42:32 +0000 (09:42 -0800)
commit653e60e2a9c16df6fccb3ae16f12d984cf83fb68
tree46cc0f6fe8140fad6ed9cbf98a861855677cbf65
parent2d429c89279f78109db05d9b7db3348fc64b4ca5
x86: fix freeze in x86_64 RTC update code in time_64.c

patch c399da0d97e06803e51085ec076b63a3168aad1b in mainline.

x86: fix freeze in x86_64 RTC update code in time_64.c

Fix hard freeze on x86_64 when the ntpd service calls
update_persistent_clock()

A repeatable but randomly timed freeze has been happening in Fedora 6
and 7 for the last year, whenever I run the ntpd service on my AMD64x2
HP Pavilion dv9000z laptop.  This freeze is due to the use of
spin_lock(&rtc_lock) under the assumption (per a bad comment) that
set_rtc_mmss is called only with interrupts disabled.  The call from
ntp.c to update_persistent_clock is made with interrupts enabled.

[ tglx@linutronix.de: ported to 2.6.23.stable ]

Signed-off-by: David P. Reed <dpreed@reed.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/kernel/time.c