From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 156BE41071 for ; Fri, 8 Nov 2002 20:47:41 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gA91lfG17047 for axp-list@listman.redhat.com; Fri, 8 Nov 2002 20:47:41 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gA91lef17043 for ; Fri, 8 Nov 2002 20:47:40 -0500 Received: from ellpspace.math.ualberta.ca (ellpspace.math.ualberta.ca [129.128.207.67]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gA91Oow14644 for ; Fri, 8 Nov 2002 20:24:50 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.11.6/8.11.6) id gA91lgh05987 for axp-list@redhat.com; Fri, 8 Nov 2002 18:47:42 -0700 Date: Fri, 8 Nov 2002 18:47:42 -0700 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: [PATCH] [RESENT] compilation warnings 4/6 Message-ID: <20021108184742.A5951@ellpspace.math.ualberta.ca> References: <20021109010039.D18411@Marvin.DL8BCU.ampr.org> <20021109010312.E18411@Marvin.DL8BCU.ampr.org> <20021109010502.F18411@Marvin.DL8BCU.ampr.org> <20021109010716.G18411@Marvin.DL8BCU.ampr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021109010716.G18411@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Sat, Nov 09, 2002 at 01:07:17AM +0000 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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