From 3651f2f603e254cfb32f4bd04980a7edd50fdc7d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 8 Jun 2024 18:11:48 -0400 Subject: kernel/amd64: lapic: Don't test register_timer() Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/lapic.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/lapic.c b/sys/arch/amd64/amd64/lapic.c index 7b3bd98..07a9a49 100644 --- a/sys/arch/amd64/amd64/lapic.c +++ b/sys/arch/amd64/amd64/lapic.c @@ -289,7 +289,6 @@ lapic_init(void) { struct cpu_info *ci = this_cpu(); union tss_stack tmr_stack; - tmrr_status_t tmr_status; /* * Hyra currently depends on the existance @@ -330,10 +329,5 @@ lapic_init(void) lapic_timer.name = "LAPIC_INTEGRATED_TIMER"; lapic_timer.stop = lapic_timer_stop; lapic_timer.oneshot_us = lapic_timer_oneshot_us; - tmr_status = register_timer(TIMER_SCHED, &lapic_timer); - - /* This should not happen but handle it just in case */ - if (__unlikely(tmr_status != TMRR_SUCCESS)) { - panic("Failed to register %s\n", lapic_timer.name); - } + register_timer(TIMER_SCHED, &lapic_timer); } -- cgit v1.2.3