mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* HZ value used in kernel/acct.c
@ 2002-02-24 21:35 Tim Schmielau
  2002-02-25 20:44 ` Ragnar Hojland Espinosa
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Schmielau @ 2002-02-24 21:35 UTC (permalink / raw)
  To: linux-kernel

What is the supposed unit of the ac_etime field of struct acct?
The code in kernel/acct.c currently says

   ac.ac_etime = encode_comp_t(jiffies - current->start_time);

so it is given in multiples of HZ, which makes this value 
platform-dependent (and subject of overflow after 48.5 days with HZ=1024). 
In include/linux/acct.h however there is the definition

   #define AHZ             100

which somehow smells like the preferred time unit.
Comments?

Tim


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-26  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-24 21:35 HZ value used in kernel/acct.c Tim Schmielau
2002-02-25 20:44 ` Ragnar Hojland Espinosa
2002-02-26  8:52   ` Tim Schmielau

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®