[2.4] Are jiffies in jiffies?
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.
Signature · 5 lines
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 |*|*|*|Quoted 7 lines
Hello!
[ I beleive this is real FAQ - so responding with private e-mails
more appropriate.ptr("RTFM") != 0 are welcome. ]
Quoted 8 lines
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
Quoted 1 line · Tomas Telensky
HZ = Herz = something per second :-)
<nitpick>
It is "Hertz".
</nitpick>
Bernd
Signature · 3 lines
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services