kernel: Pre-emption rate is supposed to be tick rate independent!
authorAlan Cox <alan@linux.intel.com>
Fri, 6 Apr 2018 18:38:01 +0000 (19:38 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 6 Apr 2018 18:38:01 +0000 (19:38 +0100)
Kernel/include/kernel.h

index ec54b02..a736262 100644 (file)
@@ -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