summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-24 22:01:09 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-24 22:01:09 +0200
commit7fc9d340e5ff385846c0c77fd24877c1b208a3bb (patch)
tree9cc4eaaf00e59bef6e5a696ae98f027de1064be7 /kern/thread.h
parent5127024f429da92ffdb93ba3cc0af367bc26f703 (diff)
Move the HZ macro to the kern/thread module
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;