From: Joe Perches <joe@perches.com>
To: "Manuel Schölling" <manuel.schoelling@gmx.de>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] net: vxge: Use time_is_before_jiffies() for time comparison
Date: Mon, 19 May 2014 10:35:28 -0700 [thread overview]
Message-ID: <1400520928.30820.23.camel@joe-AO725> (raw)
In-Reply-To: <1400518318-12386-2-git-send-email-manuel.schoelling@gmx.de>
On Mon, 2014-05-19 at 18:51 +0200, Manuel Schölling wrote:
> To be future-proof and for better readability the time comparisons are 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_<foo>(jiffies, ...)
is used _far_ more often (and it saves a little
typing too).
time_before(<foo>, jiffies)
time_is_before_jiffies(<foo>)
$ 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
<shrug> Maybe there's some reading clarity using
the time_is_(before|after)_jiffies variants.
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-05-19 17:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 16:47 [PATCH 1/3] net: vxge: Use time_is_before_jiffies() for time comparison Manuel Schölling
2014-05-19 16:51 ` (unknown), Manuel Schölling
2014-05-19 16:51 ` [PATCH] net: vxge: Use time_is_before_jiffies() for time comparison Manuel Schölling
2014-05-19 17:35 ` Joe Perches [this message]
2014-05-19 20:56 ` [PATCH v3] vxge: Use time_before() Manuel Schölling
2014-05-19 20:59 ` [PATCH] " Manuel Schölling
2014-05-21 20:43 ` David Miller
2014-05-19 16:53 ` [PATCH 1/3] net: vxge: Use time_is_before_jiffies() for time comparison Manuel Schoelling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400520928.30820.23.camel@joe-AO725 \
--to=joe@perches.com \
--cc=davem@davemloft.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manuel.schoelling@gmx.de \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).