process: note a problem to revisit
authorAlan Cox <alan@linux.intel.com>
Thu, 20 Oct 2016 16:50:59 +0000 (17:50 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 20 Oct 2016 16:50:59 +0000 (17:50 +0100)
Kernel/process.c

index 5bc3adb..c46cdf7 100644 (file)
@@ -370,6 +370,7 @@ void timer_interrupt(void)
 #ifndef CONFIG_SINGLETASK
        /* Check run time of current process */
         /* Time to switch out? */
+        /* FIXME: don't count runticks while swapping in ! */
        if ((++runticks >= udata.u_ptab->p_priority)
            && !udata.u_insys && inint && nready > 1) {
                  need_resched = 1;