summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-10-30 15:40:54 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-10-31 18:01:38 +0000
commit215ac3bc4013d8785ab0d8180ab9a9631a94b762 (patch)
tree8ad160a6eb92522914bf7f877b09fb6a7ae114b9 /src/include
parentf5dd7b6eb9b247486406f387c1cdc8c893a8cdf4 (diff)
downloadcoreboot-215ac3bc4013d8785ab0d8180ab9a9631a94b762.tar.xz
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 <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47020 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cpu/x86/lapic.h4
1 files changed, 2 insertions, 2 deletions
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();
}