summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-08-27 16:07:29 +0200
committerRichard Braun <rbraun@sceen.net>2017-08-27 16:08:34 +0200
commit2691b6088bddb12c4a17d08628e0af0a96b59b7f (patch)
treed17a7b9d4ccac83031f2f01ac89cc39af03eb6cd /kern/thread.h
parent094319b4a0a04ae11e24b44bb67aaf901536afb2 (diff)
kern/clock: new module
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 1c052364..b3bf93f0 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -48,14 +48,6 @@
#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;
@@ -253,10 +245,11 @@ void thread_yield(void);
void thread_schedule_intr(void);
/*
- * Report a periodic timer interrupt on the thread currently running on
- * the local processor.
+ * Report a periodic event on the current processor.
+ *
+ * Interrupts and preemption must be disabled when calling this function.
*/
-void thread_tick_intr(void);
+void thread_report_periodic_event(void);
/*
* Set thread scheduling parameters.