summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index f41daefb..24e3c677 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -47,6 +47,14 @@
#include <machine/tcb.h>
/*
+ * Scheduler tick frequency.
+ *
+ * The selected value of 200 translates to a period of 5ms, small enough to
+ * provide low latency, and is practical as both a dividend and divisor.
+ */
+#define THREAD_TICK_FREQ 200
+
+/*
* Thread structure.
*/
struct thread;