diff options
author | Marvin Borner | 2020-11-24 16:42:10 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-24 16:42:10 +0100 |
commit | 9257facb17bf74eb0eb1babfc59ff3549eb66242 (patch) | |
tree | 78af10bf8de91b4b8ecca878d5a358c79ae907b4 /kernel/features | |
parent | 0564c8006da7077064222d15a899b858ae2d7e61 (diff) |
Fixed timer counting with yield()
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/proc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index f4e6124..d76312c 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -22,8 +22,6 @@ struct node *current; // TODO: 20 priority queues (https://www.kernel.org/doc/html/latest/scheduler/sched-nice-design.html) void scheduler(struct regs *regs) { - timer_handler(); - if (quantum == 0) { quantum = PROC_QUANTUM; } else { @@ -65,18 +63,6 @@ void scheduler(struct regs *regs) /* printf("{%d}", ((struct proc *)current->data)->pid); */ } -void scheduler_enable(void) -{ - timer_install(); - irq_install_handler(0, scheduler); -} - -void scheduler_disable(void) -{ - irq_uninstall_handler(0); - timer_install(); -} - void proc_print(void) { struct node *node = proc_list->head; |