All of lore.kernel.org
 help / color / mirror / Atom feed
From: george anzinger <george@mvista.com>
To: Daniel Whitener <dwhitener@defeet.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [sparc64] wrong uptime in 2.5.72
Date: Tue, 17 Jun 2003 13:52:54 -0700	[thread overview]
Message-ID: <3EEF7FA6.4010903@mvista.com> (raw)
In-Reply-To: <3EEF36D9.40605@defeet.com>

Daniel Whitener wrote:
> 
> I'm getting a bad uptime with 2.5.72... It comes up with 497 as soon as 
> you boot (I've rebooted multiple times).  The problem wasn't there in 
> 2.5.70. This machine is a Sun Ultra 5.
> 
> I found this mail in the archives that might help some...
> http://www.ussg.iu.edu/hypermail/linux/kernel/0306.1/1698.html

The system now uses the posix clock_monotonic clock to compute uptime. 
  This clock requires that the arch code (do_settime) keep track of 
time settings and back them out of "wall_to_monotonic".

There was also a recent change to set wall_to_monotonic to -(xtime) so 
that this clock would be 0 at boot time.  This is usually done in the 
arch/kernel/time.c code where xtime (i.e. the system time) is set 
during boot up.  Prior code set it to the initial jiffies value.  I 
suspect that this change did not get into your kernel.

-g
> 
> sun root # uname -a
> Linux sun.nowhere.net 2.5.72 #1 Tue Jun 17 10:25:45 EST 2003 sparc64 
> sun4u TI UltraSparc IIi GNU/Linux
> sun root # uptime
>  10:46:35 up 497 days,  2:24,  1 user,  load average: 0.28, 0.17, 0.07
> sun root # cat /proc/uptime
> 42949481.55 77.26
> sun root # cat /proc/stat
> cpu  1382 0 1783 7626 466
> cpu0 1382 0 1783 7626 466
> intr 12650 11256 0 0 0 928 459 0 0 0 0 0 0 7 0 0 0
> ctxt 14048
> btime 1055864690
> processes 4217
> procs_running 2
> procs_blocked 0
> sun root # cat /proc/cpuinfo
> cpu             : TI UltraSparc IIi
> fpu             : UltraSparc IIi integrated FPU
> promlib         : Version 3 Revision 25
> prom            : 3.25.1
> type            : sun4u
> ncpus probed    : 1
> ncpus active    : 1
> Cpu0Bogo        : 719.25
> Cpu0ClkTck      : 0000000015752a00
> MMU Type        : Spitfire
> 
> -
> 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/
> 

-- 
George Anzinger   george@mvista.com
High-res-timers:  http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml


      reply	other threads:[~2003-06-17 20:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-17 15:42 [sparc64] wrong uptime in 2.5.72 Daniel Whitener
2003-06-17 20:52 ` george anzinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EEF7FA6.4010903@mvista.com \
    --to=george@mvista.com \
    --cc=dwhitener@defeet.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.