From 4a6226af28a98501c05d961d8878c5e1091d0dee Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 19 Dec 2023 17:20:59 -0500 Subject: kernel/amd64: lapic: Refactor names Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/lapic.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/lapic.c b/sys/arch/amd64/amd64/lapic.c index 8058e3f..2f5cd9f 100644 --- a/sys/arch/amd64/amd64/lapic.c +++ b/sys/arch/amd64/amd64/lapic.c @@ -238,7 +238,7 @@ lapic_set_base(void *mmio_base) void lapic_init(void) { - struct cpu_info *cur_cpu; + struct cpu_info *ci; uint64_t tmp; size_t tmr_freq; @@ -277,16 +277,16 @@ lapic_init(void) register_timer(TIMER_SCHED, &lapic_timer); /* Get the current processor, and lock its structure */ - cur_cpu = this_cpu(); - CPU_INFO_LOCK(cur_cpu); + ci = this_cpu(); + CPU_INFO_LOCK(ci); /* Calibrate timer */ lapic_timer_init(&tmr_freq); - cur_cpu->lapic_tmr_freq = tmr_freq; + ci->lapic_tmr_freq = tmr_freq; /* Set the Local APIC ID */ - cur_cpu->id = lapic_get_id(); + ci->id = lapic_get_id(); - BSP_KINFO("BSP Local APIC ID: %d\n", cur_cpu->id); - CPU_INFO_UNLOCK(cur_cpu); + BSP_KINFO("BSP Local APIC ID: %d\n", ci->id); + CPU_INFO_UNLOCK(ci); } -- cgit v1.2.3