diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-08 18:11:48 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-08 18:11:48 -0400 |
commit | 3651f2f603e254cfb32f4bd04980a7edd50fdc7d (patch) | |
tree | c91bbf5925b87416e92635ea4ac055c2a3f46ac5 /sys/arch | |
parent | aec200a3b8b4d5aabcc945536f9c872e7b4e4996 (diff) |
kernel/amd64: lapic: Don't test register_timer()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/lapic.c | 8 |
1 files changed, 1 insertions, 7 deletions
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); } |