Skip to content
Commit c399da0d authored by David P. Reed's avatar David P. Reed Committed by Thomas Gleixner
Browse files

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.

Signed-off-by: default avatarDavid P. Reed <dpreed@reed.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent fa6a1a55
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment