aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core/thread.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-03-07 17:53:35 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-03-07 17:53:35 +0100
commit92731869cbf96c96b6c79f49310b1982ba3f86ee (patch)
treec88287bb7bbf90a0d9bbecad95a417064d9d0ddb /src/kernel/core/thread.c
parentcb6cef08023bee0feeaa60a84d19bc52745bb2e4 (diff)
downloadkogata-92731869cbf96c96b6c79f49310b1982ba3f86ee.tar.gz
kogata-92731869cbf96c96b6c79f49310b1982ba3f86ee.zip
Update readme ; change time-related function names.
Diffstat (limited to 'src/kernel/core/thread.c')
-rw-r--r--src/kernel/core/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c
index 144a905..43b56a5 100644
--- a/src/kernel/core/thread.c
+++ b/src/kernel/core/thread.c
@@ -117,7 +117,7 @@ void run_scheduler() {
// This function is expected NEVER TO RETURN
if (current_thread != 0 && current_thread->state == T_STATE_RUNNING) {
- current_thread->last_ran = worker_get_time();
+ current_thread->last_ran = get_kernel_time();
if (current_thread->proc) current_thread->proc->last_ran = current_thread->last_ran;
enqueue_thread(current_thread, true);
}
@@ -217,7 +217,7 @@ static void delete_thread(thread_t *t) {
// ========== //
static void irq0_handler(registers_t *regs) {
- worker_notify_time(1000000 / TASK_SWITCH_FREQUENCY);
+ notify_time_pass(1000000 / TASK_SWITCH_FREQUENCY);
if (current_thread != 0 && current_thread->critical_level == CL_USER) {
save_context_and_enter_scheduler(&current_thread->ctx);
}