From: Johannes Stezenbach <js@linuxtv.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org,
Marcelo Feitoza Parisi <marcelo@feitoza.com.br>,
Domen Puncer <domen@coderock.org>
Subject: [DVB patch 4/5] dvb_frontend: use time_after()
Date: Mon, 23 May 2005 01:52:37 +0200 [thread overview]
Message-ID: <20050522235336.590432000@abc> (raw)
In-Reply-To: 20050522235233.190143000@abc
[-- Attachment #1: dvb-frontend-use-timer_after.patch --]
[-- Type: text/plain, Size: 1141 bytes --]
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>
---
drivers/media/dvb/dvb-core/dvb_frontend.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: linux-2.6.12-rc4-git3/drivers/media/dvb/dvb-core/dvb_frontend.c
===================================================================
--- linux-2.6.12-rc4-git3.orig/drivers/media/dvb/dvb-core/dvb_frontend.c 2005-05-19 22:52:12.000000000 +0200
+++ linux-2.6.12-rc4-git3/drivers/media/dvb/dvb-core/dvb_frontend.c 2005-05-23 00:57:16.000000000 +0200
@@ -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;
--
next prev parent reply other threads:[~2005-05-22 23:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-22 23:52 [DVB patch 0/5] DVB update, mostly dvb-usb Johannes Stezenbach
2005-05-22 23:52 ` [DVB patch 1/5] drop obsolete dibusb driver Johannes Stezenbach
2005-05-22 23:52 ` [DVB patch 3/5] dvb-usb: fix init error checking Johannes Stezenbach
2005-05-22 23:52 ` Johannes Stezenbach [this message]
2005-05-22 23:52 ` [DVB patch 5/5] flexcop: add BCM3510 ATSC frontend support for Air2PC card Johannes Stezenbach
2005-05-24 10:42 ` Johannes Stezenbach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050522235336.590432000@abc \
--to=js@linuxtv.org \
--cc=akpm@osdl.org \
--cc=domen@coderock.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@feitoza.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.