From: Alan Cox Date: Sun, 4 Dec 2016 13:37:08 +0000 (+0000) Subject: kernel: allow platforms to override the default task switch rate X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bf0698a7e120753085b9a0635e506f3ea8661caa;p=FUZIX.git kernel: allow platforms to override the default task switch rate This is useful on pure swap systems for example. --- diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index 0e6ebefc..dd237653 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -78,8 +78,11 @@ From UZI by Doug Braun and UZI280 by Stefan Nitschke. #endif +#ifndef MAXTICKS #define MAXTICKS 10 /* Max ticks before switching out (time slice) default process time slice */ +#endif + // #define MAXBACK 3 /* Process time slice for tasks not connected // to the current tty */ // #define MAXBACK2 2 /* Process time slice for background tasks */