diff options
author | Ian Moffett <ian@osmora.org> | 2023-12-19 17:20:59 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2023-12-19 17:20:59 -0500 |
commit | 4a6226af28a98501c05d961d8878c5e1091d0dee (patch) | |
tree | 58ab5ac5a67978903169de71fd6d815ef76d7ae2 /sys/arch/amd64/amd64 | |
parent | f67c2579af54201fd3522996f18109fe9ceaa31f (diff) |
kernel/amd64: lapic: Refactor names
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/lapic.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |