irq: suppress warning on !CONFIG_KERN_PREEMPT
[bertos.git] / bertos / kern / proc_test.c
index 56f784d5b012f9e4b6f4ac48d385ee22c1856a05..a32d667e966edf9452013d596a5a693605527286 100644 (file)
@@ -50,7 +50,7 @@ static void proc_test1(void)
        {
                kputs("> test1\n");
                timer_delay(50);
-               proc_switch();
+               proc_yield();
        }
 }
 
@@ -63,7 +63,6 @@ static void proc_test2(void)
        {
                kputs("> test2\n");
                timer_delay(75);
-               proc_switch();
        }
 }
 
@@ -104,7 +103,7 @@ int proc_testRun(void)
        {
                kputs("> main\n");
                timer_delay(93);
-               proc_switch();
+               proc_yield();
        }
        return 0;
 }
@@ -117,6 +116,7 @@ int proc_testRun(void)
  * How can we fix this?
  */
 #include TEST_ONLY(drv/kdebug.c)
+#include TEST_ONLY(kern/coop.c)
 #include TEST_ONLY(kern/proc.c)
 #include TEST_ONLY(drv/timer.c)
 #include TEST_ONLY(mware/formatwr.c)