From: Johannes Stezenbach Date: Fri, 24 Jun 2005 05:02:39 +0000 (-0700) Subject: [PATCH] dvb: dvb_frontend: use time_after() X-Git-Tag: MMI-PSA29.97-13-9~56704^2~378 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cc89c229d9d7ec63cd33e960c20e75b77bc987d0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] dvb: dvb_frontend: use time_after() Use time_after() macro. Signed-off-by: Marcelo Feitoza Parisi Signed-off-by: Domen Puncer Signed-off-by: Johannes Stezenbach Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index d19301d90a09..d6b7a9de471e 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -327,7 +328,8 @@ static int dvb_frontend_is_exiting(struct dvb_frontend *fe) return 1; if (fepriv->dvbdev->writers == 1) - if (jiffies - fepriv->release_jiffies > dvb_shutdown_timeout * HZ) + if (time_after(jiffies, fepriv->release_jiffies + + dvb_shutdown_timeout * HZ)) return 1; return 0;