diff options
author | Michael Hunold <devnull@localhost> | 2004-11-03 13:28:46 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2004-11-03 13:28:46 +0000 |
commit | 3c0977bfdff68baaaab6cbaba0c7d5cf6e9dfdc4 (patch) | |
tree | df7d330b4b2efbefdd9aa600a1965f17063a6e4a /linux/drivers/media/common/saa7146_fops.c | |
parent | 5c11d159f1e04623e962b2338c05e7e7986da8a7 (diff) | |
download | mediapointer-dvb-s2-3c0977bfdff68baaaab6cbaba0c7d5cf6e9dfdc4.tar.gz mediapointer-dvb-s2-3c0977bfdff68baaaab6cbaba0c7d5cf6e9dfdc4.tar.bz2 |
- disable spinlock debugging stuff for 2.4
Diffstat (limited to 'linux/drivers/media/common/saa7146_fops.c')
-rw-r--r-- | linux/drivers/media/common/saa7146_fops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/common/saa7146_fops.c index b94dcef03..8aa9850fc 100644 --- a/linux/drivers/media/common/saa7146_fops.c +++ b/linux/drivers/media/common/saa7146_fops.c @@ -84,8 +84,10 @@ int saa7146_buffer_queue(struct saa7146_dev *dev, struct saa7146_buf *buf) { #ifdef DEBUG_SPINLOCKS +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) BUG_ON(!spin_is_locked(&dev->slock)); #endif +#endif DEB_EE(("dev:%p, dmaq:%p, buf:%p\n", dev, q, buf)); BUG_ON(!q); @@ -107,8 +109,10 @@ void saa7146_buffer_finish(struct saa7146_dev *dev, int state) { #ifdef DEBUG_SPINLOCKS +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) BUG_ON(!spin_is_locked(&dev->slock)); #endif +#endif DEB_EE(("dev:%p, dmaq:%p, state:%d\n", dev, q, state)); DEB_EE(("q->curr:%p\n",q->curr)); @@ -137,8 +141,10 @@ void saa7146_buffer_next(struct saa7146_dev *dev, DEB_INT(("dev:%p, dmaq:%p, vbi:%d\n", dev, q, vbi)); #ifdef DEBUG_SPINLOCKS +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) BUG_ON(!spin_is_locked(&dev->slock)); #endif +#endif if (!list_empty(&q->queue)) { /* activate next one from queue */ buf = list_entry(q->queue.next,struct saa7146_buf,vb.queue); |