Update of /cvsroot/alsa/alsa-kernel/core/seq
In directory usw-pr-cvs1:/tmp/cvs-serv18464/seq

Modified Files:
        seq_memory.c 
Log Message:
don't touch i_sem semaphore on 2.4 or later.
the recent kernels don't need this.



Index: seq_memory.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq_memory.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- seq_memory.c        8 Oct 2002 10:54:44 -0000       1.9
+++ seq_memory.c        8 Oct 2002 14:54:33 -0000       1.10
@@ -235,17 +235,18 @@
        while (pool->free == NULL && ! nonblock && ! pool->closing) {
 
                spin_unlock(&pool->lock);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
                /* change semaphore to allow other clients
                   to access device file */
                if (file)
                        up(&semaphore_of(file));
-
+#endif
                interruptible_sleep_on(&pool->output_sleep);
-
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
                /* restore semaphore again */
                if (file)
                        down(&semaphore_of(file));
-
+#endif
                spin_lock(&pool->lock);
                /* interrupted? */
                if (signal_pending(current)) {



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to