Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263387AbTK1S3t (ORCPT ); Fri, 28 Nov 2003 13:29:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263388AbTK1S3t (ORCPT ); Fri, 28 Nov 2003 13:29:49 -0500 Received: from [139.30.44.16] ([139.30.44.16]:55717 "EHLO gockel.physik3.uni-rostock.de") by vger.kernel.org with ESMTP id S263387AbTK1S31 (ORCPT ); Fri, 28 Nov 2003 13:29:27 -0500 Date: Fri, 28 Nov 2003 19:29:24 +0100 (CET) From: Tim Schmielau To: Andrew Morton cc: lkml Subject: [patch] another jiffies wrap bug In-Reply-To: Message-ID: References: <20031128141927.5ff1f35a.rnsanchez@terra.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 930 Lines: 25 > HOWEVER, we seem to have some jiffies wrap bugs in this file. Should have checked the whole directory first, the chance of cut'n paste bugs was just too high... Tim --- linux-2.6.0-test11/arch/i386/kernel/timers/timer_hpet.c.orig 2003-11-28 19:21:32.000000000 +0100 +++ linux-2.6.0-test11/arch/i386/kernel/timers/timer_hpet.c 2003-11-28 19:22:28.000000000 +0100 @@ -108,7 +108,8 @@ offset = hpet_readl(HPET_T0_CMP) - hpet_tick; if (unlikely(((offset - hpet_last) > hpet_tick) && (hpet_last != 0))) { int lost_ticks = (offset - hpet_last) / hpet_tick; - jiffies += lost_ticks; + /* only called under xtime_lock */ + jiffies_64 += lost_ticks; } hpet_last = offset; - 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/