some fixes
[libpicofe.git] / gp2x / emu.c
index a3e7f83..3ee96f2 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/limits.h>\r
 #include <ctype.h>\r
 #include <unistd.h>\r
-#include <sched.h>\r
 \r
 #include <stdarg.h>\r
 \r
@@ -653,9 +652,6 @@ static void simpleWait(int thissec, int lim_time)
        gettimeofday(&tval, 0);\r
        if (thissec != tval.tv_sec) tval.tv_usec+=1000000;\r
 \r
-       if (tval.tv_usec < lim_time)\r
-               sched_yield();\r
-\r
        while (tval.tv_usec < lim_time)\r
        {\r
                spend_cycles(1024);\r