Commit 113b500b authored by Lee Revell's avatar Lee Revell Committed by Linus Torvalds

[PATCH] x86: clean up FIXME in do_timer_interrupt

Clean up the logic in do_timer_interrupt()
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 18ecb768
......@@ -250,16 +250,12 @@ static inline void do_timer_interrupt(int irq, void *dev_id,
>= USEC_AFTER - ((unsigned) TICK_SIZE) / 2 &&
(xtime.tv_nsec / 1000)
<= USEC_BEFORE + ((unsigned) TICK_SIZE) / 2) {
/* horrible...FIXME */
last_rtc_update = xtime.tv_sec;
if (efi_enabled) {
if (efi_set_rtc_mmss(xtime.tv_sec) == 0)
last_rtc_update = xtime.tv_sec;
else
last_rtc_update = xtime.tv_sec - 600;
} else if (set_rtc_mmss(xtime.tv_sec) == 0)
last_rtc_update = xtime.tv_sec;
else
last_rtc_update = xtime.tv_sec - 600; /* do it again in 60 s */
if (efi_set_rtc_mmss(xtime.tv_sec))
last_rtc_update -= 600;
} else if (set_rtc_mmss(xtime.tv_sec))
last_rtc_update -= 600;
}
if (MCA_bus) {
......
Markdown is supported
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