On Thu, Jun 08, 2006 at 10:39:48PM +0300, Lars Wirzenius wrote: > Fixing this would require having every increment of the jiffies counter > to check for overflow, and using two counters. This is unnecessary > overhead (a very small overhead, granted, but still), for a very small > benefit.
No it wouldn't; it'd just require you to have two extra ints, and something that ran every so often (and as part of any syscall that tells userspace the uptime), that does: static unsigned last_uptime = 0; static unsigned wraps = 0; if (uptime < last_uptime) wraps++; last_uptime = uptime; You could probably even do it in userspace, really, with some care. Cheers, aj
signature.asc
Description: Digital signature