Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932427AbWHHACn (ORCPT ); Mon, 7 Aug 2006 20:02:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932438AbWHHACn (ORCPT ); Mon, 7 Aug 2006 20:02:43 -0400 Received: from ozlabs.org ([203.10.76.45]:25524 "EHLO ozlabs.org") by vger.kernel.org with ESMTP id S932427AbWHHACn (ORCPT ); Mon, 7 Aug 2006 20:02:43 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17623.54420.461017.882242@cargo.ozlabs.ibm.com> Date: Tue, 8 Aug 2006 10:02:28 +1000 From: Paul Mackerras To: Andrew Morton Cc: Adrian Bunk , Matt Reuther , LKML , Jay Lan Subject: Re: [-mm patch] add timespec_to_us() and use it in kernel/tsacct.c In-Reply-To: <20060807132418.037048a5.akpm@osdl.org> References: <200608062330.19628.mreuther@umich.edu> <20060806222129.f1cfffb9.akpm@osdl.org> <20060807133240.GB3691@stusta.de> <20060807132418.037048a5.akpm@osdl.org> X-Mailer: VM 7.19 under Emacs 21.4.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 668 Lines: 19 Andrew Morton writes: > On Mon, 7 Aug 2006 15:32:41 +0200 > Adrian Bunk wrote: > > This doesn't look correct since do_div() does not guarantee to return > > more than 32bit. > > eh? We use do_div() to do 64bit/something all the time?? Indeed. If do_div didn't return a 64-bit quotient then printk("%lld", ...) wouldn't work. (The remainder is 32-bit of course, because the divisor is 32-bit.) Paul. - 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/