aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-19 17:20:59 -0500
committerIan Moffett <ian@osmora.org>2023-12-19 17:20:59 -0500
commit4a6226af28a98501c05d961d8878c5e1091d0dee (patch)
tree58ab5ac5a67978903169de71fd6d815ef76d7ae2
parentf67c2579af54201fd3522996f18109fe9ceaa31f (diff)
kernel/amd64: lapic: Refactor names
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/arch/amd64/amd64/lapic.c14
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);
}