irda: use msecs_to_jiffies() rather than manual calculation
Subsystems (2)
PATCH 1/1 irda: use msecs_to_jiffies() rather than manual calculation
Also use mod_timer() instead of direct assignment to "expires".
Signed-off-by Xi Wang <[email protected]>
--- net/irda/af_irda.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/irda/af_irda.c +2 -2
@@ -2558,8 +2558,8 @@ bed: self->errno =0 ;setup_timer (&self->watchdog, irda_discovery_timeout, (unsigned long )self); - self->watchdog.expires = jiffies + (val *HZ /1000 ); -add_timer (&(self->watchdog)); +mod_timer (&self->watchdog, + jiffies +msecs_to_jiffies (val));/* Wait for IR-LMP to call us back */ __wait_event_interruptible(self->query_wait,
Signature · 1 line
1.7.5.4
From: Xi Wang <[email protected]>
Date: Wed, 21 Dec 2011 07:57:16 -0500
Quoted 3 lines
Also use
mod_timer()instead of direct assignment to "expires".Signed-off-by Xi Wang <[email protected]>
Applied, thanks.