Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 16 Feb 2003 01:26:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 16 Feb 2003 01:26:33 -0500 Received: from ns.suse.de ([213.95.15.193]:51460 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id ; Sun, 16 Feb 2003 01:26:33 -0500 To: Anton Blanchard Cc: linux-kernel@vger.kernel.org, tim@physik3.uni-rostock.de Subject: Re: [PATCH] make jiffies wrap 5 min after boot References: <20030216020808.GF9833@krispykreme.suse.lists.linux.kernel> From: Andi Kleen Date: 16 Feb 2003 07:36:26 +0100 In-Reply-To: Anton Blanchard's message of "16 Feb 2003 03:11:30 +0100" Message-ID: X-Mailer: Gnus v5.7/Emacs 20.7 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 754 Lines: 20 Anton Blanchard writes: > Hi, > > > +#define INITIAL_JIFFIES (0xffffffffUL & (unsigned long)(-300*HZ)) > > In order to make 64bit arches wrap too, you might want to use -1UL here. > Not that jiffies should wrap on a 64bit machine... Seems somewhat pointless. (2^64-1) / (1000 * 3600 * 24 * 365) ~584942417.35507203243911719939 I doubt any system ever will have an uptime of > 584 million years (assuming HZ=1000) and if jiffies wrap will be the least of their problems. -Andi - 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/