* [KJ] [PATCH] drivers/media/dvb/dvb-core/dvb_frontend.c : Use of
@ 2005-04-12 15:29 Marcelo Feitoza Parisi
0 siblings, 0 replies; only message in thread
From: Marcelo Feitoza Parisi @ 2005-04-12 15:29 UTC (permalink / raw)
To: kernel-janitors
Use of time_after() macro, defined at linux/jiffies.h, which deal with
wrapping correctly and are nicer to read.
--
Marcelo Feitoza Parisi
marcelo at feitoza.com.br
http://marcelo.feitoza.com.br/
Signed-off-by: Marcelo Feitoza Parisi <marcelo@feitoza.com.br>
--- linux/drivers/media/dvb/dvb-core/dvb_frontend.c 2005-04-07 22:25:34.000000000 -0300
+++ development/drivers/media/dvb/dvb-core/dvb_frontend.c 2005-04-09 17:43:49.000000000 -0300
@@ -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(struc
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;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-12 15:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-12 15:29 [KJ] [PATCH] drivers/media/dvb/dvb-core/dvb_frontend.c : Use of Marcelo Feitoza Parisi
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).