From 215ac3bc4013d8785ab0d8180ab9a9631a94b762 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 30 Oct 2020 15:40:54 +0100 Subject: cpu/x86/lapic: rename virtual wire mode initialization function Clarify what the function does by renaming it from do_lapic_init() to lapic_virtual_wire_mode_init(). Change-Id: Ie4430bf0f6c6bf0081b6aaeace351092bcf7f4ac Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/47020 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Marshall Dawson Reviewed-by: Nico Huber --- src/cpu/x86/lapic/lapic.c | 2 +- src/include/cpu/x86/lapic.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpu/x86/lapic/lapic.c b/src/cpu/x86/lapic/lapic.c index 04ce2261de..988d664c94 100644 --- a/src/cpu/x86/lapic/lapic.c +++ b/src/cpu/x86/lapic/lapic.c @@ -3,7 +3,7 @@ #include #include -void do_lapic_init(void) +void lapic_virtual_wire_mode_init(void) { /* this is so interrupts work. This is very limited scope -- * linux will do better later, we hope ... diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h index 5ab57554f2..f4291ab35b 100644 --- a/src/include/cpu/x86/lapic.h +++ b/src/include/cpu/x86/lapic.h @@ -73,7 +73,7 @@ static inline void lapic_write_atomic(unsigned long reg, uint32_t v) # define lapic_read_around(x) lapic_read(x) # define lapic_write_around(x, y) lapic_write_atomic((x), (y)) -void do_lapic_init(void); +void lapic_virtual_wire_mode_init(void); /* See if I need to initialize the local APIC */ static inline int need_lapic_init(void) @@ -84,7 +84,7 @@ static inline int need_lapic_init(void) static inline void setup_lapic(void) { if (need_lapic_init()) - do_lapic_init(); + lapic_virtual_wire_mode_init(); else disable_lapic(); } -- cgit v1.2.3