public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* get_cmos_time() takes up to a second on boot
@ 2004-05-08  0:41 Tim Bird
  2004-05-08  2:15 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Bird @ 2004-05-08  0:41 UTC (permalink / raw)
  To: linux-kernel

In Linux 2.4.20, the routine get_cmos_time() in
arch/i386/kernel/time.c takes up to a second to run
during a boot on an x86 desktop.

It looks like this is because of the first 'for' loop where
it synchronizes with the edge of the RTC clock (and where
the comment reads "may take up to 1 second...")

In Linux 2.6.5, this same code appears in
mach_get_cmos_time() in
include/asm-i386/mach-default/mach_time.c
(but I haven't measured it on 2.6.5 yet).

What is the downside of disabling this
synchronization with the clock edge?

1 second of variability is unnacceptable
when you're requirement is to boot in
.5 seconds.  :)

Would it be bad to disable this synchronization
completely?  How about just during boot?

=============================
Tim Bird
Chair, Bootup Time Working Group, CE Linux Forum
Senior Staff Engineer, Sony Electronics
=============================


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-10 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-08  0:41 get_cmos_time() takes up to a second on boot Tim Bird
2004-05-08  2:15 ` Linus Torvalds
2004-05-10  6:05   ` Matthias Urlichs
2004-05-10 10:52   ` Gabriel Paubert
2004-05-10 11:53     ` Andries Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox