From: Alan Cox Date: Fri, 6 Apr 2018 18:38:01 +0000 (+0100) Subject: kernel: Pre-emption rate is supposed to be tick rate independent! X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=29e139152a0b58717c407f579de15522dde41869;p=FUZIX.git kernel: Pre-emption rate is supposed to be tick rate independent! --- diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index ec54b02f..a736262d 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -112,8 +112,9 @@ From UZI by Doug Braun and UZI280 by Stefan Nitschke. #ifndef MAXTICKS -#define MAXTICKS 10 /* Max ticks before switching out (time slice) - default process time slice */ +#define MAXTICKS (TICKSPERSEC/10) + /* Max ticks before switching out (time slice) + default process time slice */ #endif // #define MAXBACK 3 /* Process time slice for tasks not connected