From 3c0977bfdff68baaaab6cbaba0c7d5cf6e9dfdc4 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Wed, 3 Nov 2004 13:28:46 +0000 Subject: - disable spinlock debugging stuff for 2.4 --- linux/drivers/media/common/saa7146_fops.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux/drivers/media/common/saa7146_fops.c') 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,7 +84,9 @@ 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)); @@ -107,7 +109,9 @@ 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,7 +141,9 @@ 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 */ -- cgit v1.2.3