* [2.4] Are jiffies in jiffies?
@ 2003-11-04 12:36 Ihar 'Philips' Filipau
2003-11-04 12:52 ` Tomas Telensky
0 siblings, 1 reply; 3+ messages in thread
From: Ihar 'Philips' Filipau @ 2003-11-04 12:36 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hello!
[ I beleive this is real FAQ - so responding with private e-mails
more appropriate.
ptr("RTFM") != 0 are welcome. ]
jiffies declared in kernel/timer.c.
Name suggests that it is incremented 100 times per second.
LDD2 suggests that it is incremented every 1000/HZ per second.
Is it just name misleading - or I really miss the point?
So to translate this to seconds i need (jiffies*1000/HZ)
and milliseconds are just (jiffies/HZ) then.
Am I right?
I need this for {add,mod}_timer() calls.
--
Ihar 'Philips' Filipau / with best regards from Saarbruecken.
-- _ _ _
"... and for $64000 question, could you get yourself |_|*|_|
vaguely familiar with the notion of on-topic posting?" |_|_|*|
-- Al Viro @ LKML |*|*|*|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.4] Are jiffies in jiffies?
2003-11-04 12:36 [2.4] Are jiffies in jiffies? Ihar 'Philips' Filipau
@ 2003-11-04 12:52 ` Tomas Telensky
2003-11-04 13:04 ` Bernd Petrovitsch
0 siblings, 1 reply; 3+ messages in thread
From: Tomas Telensky @ 2003-11-04 12:52 UTC (permalink / raw)
To: Ihar 'Philips' Filipau; +Cc: Linux Kernel Mailing List
> Hello!
>
> [ I beleive this is real FAQ - so responding with private e-mails
> more appropriate.
> ptr("RTFM") != 0 are welcome. ]
>
> jiffies declared in kernel/timer.c.
> Name suggests that it is incremented 100 times per second.
> LDD2 suggests that it is incremented every 1000/HZ per second.
>
> Is it just name misleading - or I really miss the point?
>
> So to translate this to seconds i need (jiffies*1000/HZ)
> and milliseconds are just (jiffies/HZ) then.
No. seconds are jiffies/HZ.
HZ = Herz = something per second :-)
HZ = something / second => second = something / HZ :-)
Tomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.4] Are jiffies in jiffies?
2003-11-04 12:52 ` Tomas Telensky
@ 2003-11-04 13:04 ` Bernd Petrovitsch
0 siblings, 0 replies; 3+ messages in thread
From: Bernd Petrovitsch @ 2003-11-04 13:04 UTC (permalink / raw)
To: Tomas Telensky; +Cc: Ihar 'Philips' Filipau, Linux Kernel Mailing List
On Die, 2003-11-04 at 13:52, Tomas Telensky wrote:
> HZ = Herz = something per second :-)
<nitpick>
It is "Hertz".
</nitpick>
Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-04 13:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 12:36 [2.4] Are jiffies in jiffies? Ihar 'Philips' Filipau
2003-11-04 12:52 ` Tomas Telensky
2003-11-04 13:04 ` Bernd Petrovitsch
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).