Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 276c4c69ed5efcebe43ee6121194cf59 > files > 49

kernel22-2.2.20-9mdk.src.rpm

diff -ruN linux-2.2.15/include/linux/condsched.h linux-2.2.15-LL/include/linux/condsched.h
--- linux-2.2.15/include/linux/condsched.h	Wed Dec 31 19:00:00 1969
+++ linux-2.2.15-LL/include/linux/condsched.h	Wed Mar  8 10:47:31 2000
@@ -0,0 +1,14 @@
+#ifndef _LINUX_CONDSCHED_H
+#define _LINUX_CONDSCHED_H
+
+#ifndef __ASSEMBLY__
+#define conditional_schedule() \
+do { \
+	if (current->need_resched) { \
+		current->state = TASK_RUNNING; \
+		schedule(); \
+	} \
+} while(0)
+#endif
+
+#endif