From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH] net: vxge: Use time_is_before_jiffies() for time comparison Date: Mon, 19 May 2014 10:35:28 -0700 Message-ID: <1400520928.30820.23.camel@joe-AO725> References: <1400518056-12089-1-git-send-email-manuel.schoelling@gmx.de> <1400518318-12386-1-git-send-email-manuel.schoelling@gmx.de> <1400518318-12386-2-git-send-email-manuel.schoelling@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: Manuel =?ISO-8859-1?Q?Sch=F6lling?= Return-path: In-Reply-To: <1400518318-12386-2-git-send-email-manuel.schoelling@gmx.de> Sender: kernel-janitors-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 2014-05-19 at 18:51 +0200, Manuel Sch=F6lling wrote: > To be future-proof and for better readability the time comparisons ar= e modified > to use time_is_before_jiffies() instead of plain, error-prone math. Hi again Manuel. Just a couple of FYIs/nits: The "net: " prefix in your patch subject is a little misleading. One reading might be that the patch is to the net/ subsystem but it's for a driver. It might be better as: [PATCH] vxge: Use time_is_before_jiffies Generally, just use the last directory name for the subject prefix. ie: patching: foo/bar/baz/qux.c subject prefix is generally: [PATCH] baz: whatever changed... and a single patch to a number of different files in foo/bar/baz/*.[ch] is still [PATCH] baz: etc... Also, the time_is_(before|after)_jiffies variants are not used particularly often in the kernel. The form using of time_(jiffies, ...) is used _far_ more often (and it saves a little typing too). time_before(, jiffies) time_is_before_jiffies() $ git grep -E -w "time_is_(before|after|before_eq|after_eq)_jiffies" | = wc -l 93 $ git grep -E "\btime_(before|after|before_eq|after_eq)+\s*\(.*jiffies"= | wc -l 1695 Maybe there's some reading clarity using the time_is_(before|after)_jiffies variants. -- To unsubscribe from this list: send the line "unsubscribe kernel-janito= rs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html