From bf0698a7e120753085b9a0635e506f3ea8661caa Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 4 Dec 2016 13:37:08 +0000 Subject: [PATCH] kernel: allow platforms to override the default task switch rate This is useful on pure swap systems for example. --- Kernel/include/kernel.h | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.34.1