linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rounding conventions for jiffies_to_msecs / msecs_to_jiffies
@ 2008-09-30 20:05 Elias Oltmanns
  0 siblings, 0 replies; only message in thread
From: Elias Oltmanns @ 2008-09-30 20:05 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-30 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 20:05 Rounding conventions for jiffies_to_msecs / msecs_to_jiffies Elias Oltmanns

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).