lkml.org 
[lkml]   [2001]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Nasty suprise with uptime
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/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.168 / U:1.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site