From c8213f1f2186e81c32a53e49d3ce154865232b48 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 15 Feb 2025 00:51:22 -0500 Subject: kernel/amd64: lapic: Get rid of unused function Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/lapic.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'sys/arch/amd64') diff --git a/sys/arch/amd64/amd64/lapic.c b/sys/arch/amd64/amd64/lapic.c index 317255a..ddf6d67 100644 --- a/sys/arch/amd64/amd64/lapic.c +++ b/sys/arch/amd64/amd64/lapic.c @@ -205,22 +205,6 @@ lapic_reg_set(uint32_t reg, uint32_t value) lapic_writel(reg, old | value); } -/* - * Clear bits within a LAPIC register - * without overwriting the whole thing. - * - * @reg: Reg with bits to be cleared. - * @value: Value in reg will be cleared by this value. - */ -static inline void -lapic_reg_clear(uint32_t reg, uint32_t value) -{ - uint32_t old; - - old = lapic_readl(reg); - lapic_writel(reg, old & ~(value)); -} - /* * Hardware and software enable the Local APIC * through IA32_APIC_BASE_MSR and the SVR. -- cgit v1.2.3