Update of /cvsroot/alsa/alsa-kernel/isa/sb
In directory sc8-pr-cvs1:/tmp/cvs-serv13340/isa/sb

Modified Files:
        emu8000_patch.c emu8000_pcm.c 
Log Message:
Revised schedule() and set_current_state() calls.
Replaced need_resched() with cond_resched() call.


Index: emu8000_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/sb/emu8000_patch.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- emu8000_patch.c     12 Aug 2002 08:43:46 -0000      1.6
+++ emu8000_patch.c     30 Sep 2003 09:28:27 -0000      1.7
@@ -233,11 +233,7 @@
                /* we may take too long time in this loop.
                 * so give controls back to kernel if needed.
                 */
-               if (need_resched()) {
-                       if (current->state != TASK_RUNNING)
-                               set_current_state(TASK_RUNNING);
-                       schedule();
-               }
+               cond_resched();
 
                if (i == sp->v.loopend &&
                    (sp->v.mode_flags & 
(SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)))

Index: emu8000_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/sb/emu8000_pcm.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- emu8000_pcm.c       10 Feb 2003 11:53:49 -0000      1.10
+++ emu8000_pcm.c       30 Sep 2003 09:28:27 -0000      1.11
@@ -424,13 +424,9 @@
  */
 #define CHECK_SCHEDULER() \
 do { \
-       if (need_resched()) {\
-               if (current->state != TASK_RUNNING)\
-                       set_current_state(TASK_RUNNING);\
-               schedule();\
-               if (signal_pending(current))\
-                       return -EAGAIN;\
-       }\
+       cond_resched();\
+       if (signal_pending(current))\
+               return -EAGAIN;\
 } while (0)
 
 



-------------------------------------------------------
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