From: Chris Peterson <cpeterso@cpeterso.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de
Subject: Re: [RFC] mod_timer() helper functions?
Date: Wed, 20 May 2009 22:11:44 -0700 [thread overview]
Message-ID: <a24804730905202211w77f2d0bay96d22b05e9c45d81@mail.gmail.com> (raw)
In-Reply-To: <20090520081443.GA8684@one.firstfloor.org>
>> int timer_settime_msecs(struct timer_list *timer, int msecs)
>
> At least this function needs something that indicates it is very approximate
> (upto 900% error for 1ms with HZ=100)
> The old open coded pattern showed this.
I see your point. But doesn't the open coded pattern with jiffies
imply an even greater timer precision than milliseconds? Or does
mod_timer()'s use of an expiration time instead of a time delay avoid
promising more precision than it can provide?
Quite of a few mod_timer() calls already try to schedule precise
timeouts in terms of HZ/10 or HZ/20.
chris
prev parent reply other threads:[~2009-05-21 5:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-16 7:36 Chris Peterson
2009-05-17 6:03 ` Andrew Morton
2009-05-17 7:50 ` Chris Peterson
2009-05-17 8:03 ` Andrew Morton
2009-05-17 12:13 ` Thomas Gleixner
2009-05-18 7:14 ` Andi Kleen
2009-05-20 7:11 ` Chris Peterson
2009-05-20 8:14 ` Andi Kleen
2009-05-21 5:11 ` Chris Peterson [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=a24804730905202211w77f2d0bay96d22b05e9c45d81@mail.gmail.com \
--to=cpeterso@cpeterso.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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®