summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2006-07-15 09:30:46 -0300
committerTrent Piepho <xyzzy@speakeasy.org>2006-07-15 09:30:46 -0300
commit38178c059c3bea8bf2c95115fb753b55319a37f6 (patch)
treeb4d64bf33035d56b64587273257de38e2f3f1695 /v4l
parentc7298cadd95c10598507b23eadad2c96bd466cfd (diff)
downloadmediapointer-dvb-s2-38178c059c3bea8bf2c95115fb753b55319a37f6.tar.gz
mediapointer-dvb-s2-38178c059c3bea8bf2c95115fb753b55319a37f6.tar.bz2
Add compat.h code for schedule_timeout_interruptible()
From: Trent Piepho <xyzzy@speakeasy.org> Add a static inline version of schedule_timeout_interruptible(), it's only two lines, to compat.h. This will make bt866 and ks0127 compile with pre 2.6.14 kernels. Remove #if/#else code from msp3400, saa7134-tvaudio, and vivi that used to handle this. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index ae34380e0..dc100abed 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -274,6 +274,15 @@ static inline unsigned long vmalloc_to_pfn(void * vmalloc_addr)
#define mutex_trylock(a) down_trylock(a)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
+static inline signed long __sched
+schedule_timeout_interruptible(signed long timeout)
+{
+ __set_current_state(TASK_INTERRUPTIBLE);
+ return schedule_timeout(timeout);
+}
+#endif
+
#endif
/*
* Local variables: