Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: [PATCH] [RESENT] compilation warnings 4/6
Date: Fri, 8 Nov 2002 18:47:42 -0700	[thread overview]
Message-ID: <20021108184742.A5951@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <20021109010716.G18411@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Sat, Nov 09, 2002 at 01:07:17AM +0000

On Sat, Nov 09, 2002 at 01:07:17AM +0000, Thorsten Kranzkowski wrote:
> 
> diff -ur linux-2.5.46/arch/alpha/kernel/time.c linux-2.5.46-ds20/arch/alpha/kernel/time.c
....
> -		if (diff > one_percent) {
> +		if ((unsigned long)diff > one_percent) {
....

This reminds me and has really nothing to do with signs on casts. :-)

One percent is 36 secons per hour.  With such big drift I was always
getting "frequncy bogus" and a clock which was loosing big time all the
time (bad puns somewhat intended :-).  In kernels I am using currently I
have now dot_one_percent, i.e. I dropped that down by a factor of 100
and clocks started to behave.  I see in /proc/cpu:

cycle frequency [Hz]	: 796692134

instead of 800000000 as before and that is how it should be.

  Michal




  parent reply	other threads:[~2002-11-09  1:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09  1:00 [PATCH] [RESENT] compilation warnings 1/6 Thorsten Kranzkowski
2002-11-09  1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
2002-11-09  1:05   ` [PATCH] [RESENT] compilation warnings 3/6 Thorsten Kranzkowski
2002-11-09  1:07     ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
2002-11-09  1:08       ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
2002-11-09  1:13         ` [PATCH] [RESENT] compilation warnings 6/6 Thorsten Kranzkowski
2002-11-09  1:47       ` Michal Jaegermann [this message]
2002-11-09  5:51       ` [PATCH] [RESENT] compilation warnings 4/6 Richard Henderson
2002-11-09  4:50     ` [PATCH] [RESENT] compilation warnings 3/6 Richard Henderson
2002-11-09 19:14       ` Peter Rival
2002-11-09 21:29         ` Michal Jaegermann
2002-11-14  6:44         ` Richard Henderson
2002-11-09  4:32 ` [PATCH] [RESENT] compilation warnings 1/6 Richard Henderson
read-only archive

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