summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 10:51:00 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 10:51:00 -0200
commit7c0917f006a519be5e54c6405f54dea61ca06b7a (patch)
tree47a8e3218398355b7ba1cdf59b9390afa003fdc9 /v4l/compat.h
parentb1ccf703c9015bc3257716ffccd33ca147f7a1a8 (diff)
parent68a6fa1ae421b7c28eb6b8365f3adfd08007e7b7 (diff)
downloadmediapointer-dvb-s2-7c0917f006a519be5e54c6405f54dea61ca06b7a.tar.gz
mediapointer-dvb-s2-7c0917f006a519be5e54c6405f54dea61ca06b7a.tar.bz2
commit backport
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 186493d7f..b00e8eaf3 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -412,5 +412,13 @@ static inline int usb_endpoint_type(const struct usb_endpoint_descriptor *epd)
pci_resource_len(pdev, bar))
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
+#define poll_schedule(pwq, task) \
+ do { \
+ set_current_state(task); \
+ schedule(); \
+ set_current_state(TASK_RUNNING); \
+ } while (0)
+#endif
#endif