public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Elias Oltmanns <eo@nebensachen.de>
To: linux-kernel@vger.kernel.org
Subject: Rounding conventions for jiffies_to_msecs / msecs_to_jiffies
Date: Tue, 30 Sep 2008 22:05:14 +0200	[thread overview]
Message-ID: <8763od9z7p.fsf@denkblock.local> (raw)

Hi all,

since I don't really understand the algorithm in jiffies_to_msecs() for
HZ values that are not divisors or multiples of 1000 right now, I'd like
to ask if somebody can tell me something about it. In particular, I'd
like to know what we can assume wrt rounding, i.e. always round up /
down, etc. In fact, I'm most interested in the case where the argument
of jiffies_to_msecs() is close to zero. Can I safely assume that a
non-zero argument will *always* result in a non-zero return value
whatever HZ may be?

Even though I'm mostly concerned with jiffies_to_msecs() at the moment,
I am still intersted in the same questions wrt msecs_to_jiffies(), so
please don't shrink from an elaborate explanation ;-).

Thanks for all efforts in advance,

Elias

                 reply	other threads:[~2008-09-30 20:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=8763od9z7p.fsf@denkblock.local \
    --to=eo@nebensachen.de \
    --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