From 2af768453295cea2a0c998a136aff2115b2ec94c Mon Sep 17 00:00:00 2001 From: MunirG05 Date: Tue, 11 Jul 2023 13:32:40 +0530 Subject: [PATCH] fix the dumb --- kernel/src/scheduler.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/src/scheduler.rs b/kernel/src/scheduler.rs index cca1dfcf..d7724fd8 100644 --- a/kernel/src/scheduler.rs +++ b/kernel/src/scheduler.rs @@ -18,9 +18,7 @@ impl Scheduler<'_> { pub fn new() -> Self { Self { data: VecDeque::new(), - tick_callback: None, - last_timer_count: 0, - tick_limit: 64, + } } pub fn new_process(&mut self, program: Vec) { @@ -48,5 +46,6 @@ impl Scheduler<'_> { let mut prog = self.data.pop_front().unwrap(); prog.run().unwrap(); self.data.push_back(prog); + } } }