Update of /cvsroot/alsa/alsa-driver/include
In directory sc8-pr-cvs1:/tmp/cvs-serv7711/include

Modified Files:
        adriver.h 
Log Message:
Added cond_resched() macro

Index: adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- adriver.h   25 Sep 2003 18:55:42 -0000      1.57
+++ adriver.h   30 Sep 2003 08:54:47 -0000      1.58
@@ -134,6 +134,15 @@
        return (struct proc_dir_entry *) inode->u.generic_ip;
 }
 #endif
+#ifndef cond_resched
+#define cond_resched() \
+       do { \
+               if (need_resched()) { \
+                       set_current_state(TASK_RUNNING); \
+                       schedule(); \
+               } \
+       } while (0)
+#endif
 #include <asm/io.h>
 #if !defined(isa_virt_to_bus)
 #if defined(virt_to_bus) || defined(__alpha__)



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