From: Alan Cox Date: Thu, 20 Oct 2016 16:50:59 +0000 (+0100) Subject: process: note a problem to revisit X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3d214d6e869e3e82d6b87e5daf5d5aee68b7f51e;p=FUZIX.git process: note a problem to revisit --- diff --git a/Kernel/process.c b/Kernel/process.c index 5bc3adb4..c46cdf7c 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -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;