Re: Nasty suprise with uptime

george anzinger (george@mvista.com)
Tue, 30 Oct 2001 00:53:20 -0800


Jonathan Briggs wrote:
>
> A 32 bit uptime patch should also include a new kernel parameter that
> could be passed from LILO: uptime. Then you could test the uptime patch
> by passing uptime=4294967295
>
> Or make /proc/uptime writable.

NO NO NO!

First uptime is a conversion of jiffies. Second, the POSIX standard
wants a CLOCK_MONOTONIC which, by definition, can not be set. Jiffies
is the most reasonable source for this clock. I am afraid you will have
to accumulate "real" time for uptime :)

George

>
> David Relson wrote:
>
> > Let's assume you have the counter changed to 32 bits - RIGHT NOW
> > (tm). Build a kernel, install it, reboot. It'll be over a year
> > (approx Jan 2003) before the change will be noticeable...
> >
> > Methinks that's a long time to wait for a result :-)
> >
> > David
> >
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/