From: Imre Deak <imre.deak@intel.com>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Jon Maloy <jon.maloy@ericsson.com>,
Allan Stephens <allan.stephens@windriver.com>,
"David S. Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net
Subject: [PATCH 10/11] net/tipc: take msecs_to_jiffies_min into use
Date: Fri, 10 May 2013 15:13:28 +0300 [thread overview]
Message-ID: <1368188011-23661-10-git-send-email-imre.deak@intel.com> (raw)
In-Reply-To: <1368188011-23661-1-git-send-email-imre.deak@intel.com>
Use msecs_to_jiffies_min instead of open-coding the same.
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
net/tipc/core.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 0207db0..3f23e22 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -133,7 +133,7 @@ static inline void k_init_timer(struct timer_list *timer, Handler routine,
*/
static inline void k_start_timer(struct timer_list *timer, unsigned long msec)
{
- mod_timer(timer, jiffies + msecs_to_jiffies(msec) + 1);
+ mod_timer(timer, jiffies + msecs_to_jiffies_min(msec));
}
/**
--
1.7.10.4
next prev parent reply other threads:[~2013-05-10 12:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1368542918-8861-1-git-send-email-imre.deak@intel.com>
[not found] ` <1368188011-23661-1-git-send-email-imre.deak@intel.com>
2013-05-10 12:13 ` [PATCH 06/11] net/bonding: take msecs_to_jiffies_min into use Imre Deak
2013-05-10 13:58 ` Michal Kubecek
2013-05-10 21:19 ` Imre Deak
2013-05-10 12:13 ` [PATCH 07/11] net/peak_pcmcia: " Imre Deak
2013-05-15 9:12 ` Marc Kleine-Budde
2013-05-15 11:45 ` Marc Kleine-Budde
2013-05-10 12:13 ` [PATCH 09/11] net/sunrpc: " Imre Deak
2013-05-10 12:13 ` Imre Deak [this message]
2013-05-14 14:48 ` [PATCH v2 6/8] net/sunrpc: take msecs_to_jiffies_timeout " Imre Deak
2013-05-14 14:48 ` [PATCH v2 7/8] net/tipc: " Imre Deak
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=1368188011-23661-10-git-send-email-imre.deak@intel.com \
--to=imre.deak@intel.com \
--cc=akpm@linux-foundation.org \
--cc=allan.stephens@windriver.com \
--cc=daniel.vetter@ffwll.ch \
--cc=davem@davemloft.net \
--cc=jon.maloy@ericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tipc-discussion@lists.sourceforge.net \
/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).