diff options
author | Johannes Stezenbach <js@linuxtv.org> | 2005-06-24 01:02:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:05:30 -0400 |
commit | cc89c229d9d7ec63cd33e960c20e75b77bc987d0 (patch) | |
tree | dfe3df3bd9ea201e92f4c10db4531cfad401a3ab /drivers | |
parent | f756ead1366092b73467fe3b1fb23f61034e94f9 (diff) |
[PATCH] dvb: dvb_frontend: use time_after()
Use time_after() macro.
Signed-off-by: Marcelo Feitoza Parisi <marcelo@feitoza.com.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
35 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
36 | #include <linux/list.h> | 36 | #include <linux/list.h> |
37 | #include <linux/suspend.h> | 37 | #include <linux/suspend.h> |
38 | #include <linux/jiffies.h> | ||
38 | #include <asm/processor.h> | 39 | #include <asm/processor.h> |
39 | #include <asm/semaphore.h> | 40 | #include <asm/semaphore.h> |
40 | 41 | ||
@@ -327,7 +328,8 @@ static int dvb_frontend_is_exiting(struct dvb_frontend *fe) | |||
327 | return 1; | 328 | return 1; |
328 | 329 | ||
329 | if (fepriv->dvbdev->writers == 1) | 330 | if (fepriv->dvbdev->writers == 1) |
330 | if (jiffies - fepriv->release_jiffies > dvb_shutdown_timeout * HZ) | 331 | if (time_after(jiffies, fepriv->release_jiffies + |
332 | dvb_shutdown_timeout * HZ)) | ||
331 | return 1; | 333 | return 1; |
332 | 334 | ||
333 | return 0; | 335 | return 0; |