diff options
Diffstat (limited to 'kernel/features/proc.c')
-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; |