kernel: allow platforms to override the default task switch rate
authorAlan Cox <alan@linux.intel.com>
Sun, 4 Dec 2016 13:37:08 +0000 (13:37 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 4 Dec 2016 13:37:08 +0000 (13:37 +0000)
This is useful on pure swap systems for example.

Kernel/include/kernel.h

index 0e6ebef..dd23765 100644 (file)
@@ -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 */