9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Support for Mac OS X Leopard
Date: Sun, 30 Sep 2007 17:09:09 -0400	[thread overview]
Message-ID: <20070930210912.CB17D1E8C1C@holo.morphisms.net> (raw)
In-Reply-To: <14ec7b180709301127i4bdae0bcs276f771355322816@mail.gmail.com>

>> the right thing to do is to fix timesync to notice
>> such jumps and write them off as suspend/resume
>> instead of assuming that the cpu has gotten *very* slow.
>
> timesync still needs to set the correct time (a system which was
> suspended for, say, 10 hours will live 10 hours in the past). perhaps
> devcons.c:^writebintime should be the one to skip updating the clock
> frequency?

timesync is in charge of figuring out the
correspondence between cpu frequency
and real time.  the kernel does what timesync
says.  instead of the kernel second-guessing
timesync, timesync should just be fixed.

sometimes clock speed *does* vary w.r.t. real time.
if i switch from ac to battery on a laptop,
then timesync helps navigate the change
in cpu frequency.

russ



      reply	other threads:[~2007-09-30 21:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-29 19:52 Tharaneedharan Vilwanathan
2007-09-29 19:57 ` andrey mirtchovski
2007-09-29 20:25   ` Tharaneedharan Vilwanathan
2007-09-29 21:30     ` Francisco J Ballesteros
2007-09-29 21:49       ` andrey mirtchovski
2007-09-29 21:50         ` andrey mirtchovski
2007-09-30 15:18         ` Jack Johnson
2007-09-30 18:20         ` Russ Cox
2007-09-30 18:27           ` andrey mirtchovski
2007-09-30 21:09             ` Russ Cox [this message]

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=20070930210912.CB17D1E8C1C@holo.morphisms.net \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).