public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* What is supposed to replace clock_t?
@ 2002-07-13  8:34 Tim Schmielau
  2002-07-13 18:15 ` Linus Torvalds
  0 siblings, 1 reply; 8+ messages in thread
From: Tim Schmielau @ 2002-07-13  8:34 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: lkml

Hi Linus,

the log message to your patch that splits in-kernel HZ und user-level HZ
mentions the "broken interfaces that still use 'clock_t'". And indeed,
these interfaces are broken now, since some of them now wrap after 49 
days, while others wrap after 497 days.

My goal with the "> 497 days uptime patch" was to hide internal overflows
within the kernel, so that every exported value wraps exactly when the
number of _exported_ bits does not suffice to hold the true value.

However, with the new divisor of 10 between internal and external time 
values this would now require most internal time values to be stored in
>= 36 bit wide variables (i.e., 64 bit).
Then we could, of course, also extend the exported values where exported
as text, only keeping binary interfaces as 'legacy interfaces'.

Could you please state whether this is your intended direction to go?

Tim


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

end of thread, other threads:[~2002-07-16 10:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-13  8:34 What is supposed to replace clock_t? Tim Schmielau
2002-07-13 18:15 ` Linus Torvalds
2002-07-13 20:15   ` Albert D. Cahalan
2002-07-13 20:30     ` Thunder from the hill
2002-07-14 18:46     ` Linus Torvalds
2002-07-14  5:40   ` Zack Weinberg
2002-07-16 10:54   ` [patch 1/2] " Tim Schmielau
2002-07-16 11:00     ` [patch 2/2] " Tim Schmielau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox