From 197ea3ca20879b29fca41a07cf43e5b04b9c5083 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 26 Oct 2020 16:36:40 +0100 Subject: Optimizations --- kernel/drivers/timer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'kernel/drivers/timer.c') diff --git a/kernel/drivers/timer.c b/kernel/drivers/timer.c index 812bde7..3bc1811 100644 --- a/kernel/drivers/timer.c +++ b/kernel/drivers/timer.c @@ -31,9 +31,7 @@ void timer_handler() // "Delay" function with CPU sleep void timer_wait(u32 ticks) { - u32 eticks; - - eticks = timer_ticks + ticks; + u32 eticks = timer_ticks + ticks; while (timer_ticks < eticks) { __asm__ volatile("sti//hlt//cli"); } -- cgit v1.2.3