Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 16 Feb 2003 03:00:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 16 Feb 2003 03:00:45 -0500 Received: from gans.physik3.uni-rostock.de ([139.30.44.2]:56554 "EHLO gans.physik3.uni-rostock.de") by vger.kernel.org with ESMTP id ; Sun, 16 Feb 2003 03:00:45 -0500 Date: Sun, 16 Feb 2003 09:10:31 +0100 (CET) From: Tim Schmielau To: Anton Blanchard cc: William Lee Irwin III , Andrew Morton , Andi Kleen , lkml Subject: Re: [PATCH] make jiffies wrap 5 min after boot In-Reply-To: <20030215225618.538f4c70.akpm@digeo.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 Content-Length: 679 Lines: 21 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... The whole point of the "0xffffffffUL &" is not to test 64 bit arches, because I know Andi doesn't take jiffies wrap patches. And-ing with -1UL is a no-op, as it is with ~0UL. Tim - 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/