From: Andrew Derrick Balsa <andrebalsa@altern.org>
To: Philip Gladstone <philip@raptor.com>
Cc: linux-kernel@vger.rutgers.edu,
"C. Scott Ananian" <cananian@lesser-magoo.lcs.mit.edu>
Subject: Re: new version of time.c
Date: Mon, 13 Jul 1998 17:13:18 +0200 [thread overview]
Message-ID: <98071317313602.00441@lw2l.bnc.interdrome.fr> (raw)
In-Reply-To: <35AA1F4F.A4840FDA@raptor.com>
Hi Philip,
On Mon, 13 Jul 1998, Philip Gladstone wrote:
>>Hi,
>
>This code suffers from the same problem that all the existing
>do_fast code suffers from -- namely, the assumption that the timer
>interrupt is processed exactly on the 100Hz tick.
You are right. :-)
Even the "top half" of the timer interrupt sometimes doesn't run immediately,
when e.g. a driver has disabled interrupts and is waiting for something to
happen.
>
>The attached patch fixes the problem for 2.0.3x series kernels
>and has been running for a time without problems. It also includes
>a debugging function (do_both_gettimeoffset) that can be used
>to demonstrate the problem.
Looks very good, specially the debugging function.
>
>The trick is to record (using the do_slow mechanism) the time
>when the interrupt is actually taken, and then factor that into
>the calculation.
Excellent, and the cost is not high at all (2 I/O cycles every 10 ms).
Just one microscopic knitpicking, if you allow me: since reading the TSC is
*much* faster than latching the 8253/82C54 CTC, it should come first.
And a question:
What are and why did you do those changes in /kernel/time.c? (I mean, I
understood those in /arch/i386/kernel/time.c)
Cheers,
---------------------
Andrew D. Balsa
andrebalsa@altern.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
next prev parent reply other threads:[~1998-07-13 14:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-12 10:54 Andrew Derrick Balsa
1998-07-13 14:53 ` new version of time.c Philip Gladstone
1998-07-13 15:13 ` Andrew Derrick Balsa [this message]
1998-07-13 16:30 ` C. Scott Ananian
[not found] <Pine.GSO.3.96.980713150837.8292B-100000@miris.lcs.mit.edu>
1998-07-13 20:50 ` Andrew Derrick Balsa
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=98071317313602.00441@lw2l.bnc.interdrome.fr \
--to=andrebalsa@altern.org \
--cc=cananian@lesser-magoo.lcs.mit.edu \
--cc=linux-kernel@vger.rutgers.edu \
--cc=philip@raptor.com \
/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
all inboxes | Powered by JetHome®