Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 29 Mar 2002 10:40:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 29 Mar 2002 10:40:33 -0500 Received: from tmr-02.dsl.thebiz.net ([216.238.38.204]:26640 "EHLO gatekeeper.tmr.com") by vger.kernel.org with ESMTP id ; Fri, 29 Mar 2002 10:40:27 -0500 Date: Fri, 29 Mar 2002 10:37:53 -0500 (EST) From: Bill Davidsen To: Martin Dalecki cc: Mikael Pettersson , vojtech@ucw.cz, linux-kernel@vger.kernel.org Subject: Re: 2.5.7 pre-UDMA PIIX bug In-Reply-To: <3CA47378.70208@evision-ventures.com> Message-ID: 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 On Fri, 29 Mar 2002, Martin Dalecki wrote: > > 333 T = 1000000000 / piix_clock; > > 334 UT = T / umul; > > I think that it should be just sufficient to add the > following test just in front of the offending calculartion. > > if (umul == 0) > ++umul; - 334 UT = T / umul; + 334 UT = T / (umul || 1); -- bill davidsen CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. - 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/