public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Bird <tim.bird@am.sony.com>
To: linux-kernel@vger.kernel.org
Subject: get_cmos_time() takes up to a second on boot
Date: Fri, 07 May 2004 17:41:30 -0700	[thread overview]
Message-ID: <409C2CBA.8040709@am.sony.com> (raw)

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
=============================


             reply	other threads:[~2004-05-08  0:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-08  0:41 Tim Bird [this message]
2004-05-08  2:15 ` get_cmos_time() takes up to a second on boot Linus Torvalds
2004-05-10  6:05   ` Matthias Urlichs
2004-05-10 10:52   ` Gabriel Paubert
2004-05-10 11:53     ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=409C2CBA.8040709@am.sony.com \
    --to=tim.bird@am.sony.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox