From mboxrd@z Thu Jan 1 00:00:00 1970 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 > 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;