Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751198AbVK3WuQ (ORCPT ); Wed, 30 Nov 2005 17:50:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751221AbVK3WuP (ORCPT ); Wed, 30 Nov 2005 17:50:15 -0500 Received: from [139.30.44.16] ([139.30.44.16]:25871 "EHLO gockel.physik3.uni-rostock.de") by vger.kernel.org with ESMTP id S1751215AbVK3WuO (ORCPT ); Wed, 30 Nov 2005 17:50:14 -0500 Date: Wed, 30 Nov 2005 23:50:11 +0100 (CET) From: Tim Schmielau To: Alexey Dobriyan cc: Dave Jones , Andrew Morton , Marcelo Feitoza Parisi , linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvidia-agp: use time_before_eq() In-Reply-To: <20051130213902.GB12551@mipter.zuzino.mipt.ru> Message-ID: References: <20051130213902.GB12551@mipter.zuzino.mipt.ru> 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: 550 Lines: 17 On Thu, 1 Dec 2005, Alexey Dobriyan wrote: > It deals with wrapping correctly and is nicer to read. > - if ((signed)(end - jiffies) <= 0) { > + if (time_before_eq(end, jiffies)) { It'd be even nicer to read if it were if (time_after_eq(jiffies, end)) { like the other users of these macros. 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/