diff options
author | Johannes Stezenbach <devnull@localhost> | 2005-05-13 23:08:22 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2005-05-13 23:08:22 +0000 |
commit | 0bdb469abc8fd016af47c1f236a642f1db3e9ff6 (patch) | |
tree | da5590fa3c99c3c67fb3ef6e23ee4c262b7e21d2 /linux | |
parent | f155d54da9d6f4e5f6bab5d0ee0f84d17ccadddc (diff) | |
download | mediapointer-dvb-s2-0bdb469abc8fd016af47c1f236a642f1db3e9ff6.tar.gz mediapointer-dvb-s2-0bdb469abc8fd016af47c1f236a642f1db3e9ff6.tar.bz2 |
Use of time_after() macro, defined at linux/jiffies.h, which deal with
wrapping correctly and are nicer to read.
Signed-off-by: Marcelo Feitoza Parisi <marcelo@feitoza.com.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index d19301d90..d6b7a9de4 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -35,6 +35,7 @@ #include <linux/moduleparam.h> #include <linux/list.h> #include <linux/suspend.h> +#include <linux/jiffies.h> #include <asm/processor.h> #include <asm/semaphore.h> @@ -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; |