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>
This commit is contained in:
Felix Held 2020-10-30 15:40:54 +01:00
parent f5dd7b6eb9
commit 215ac3bc40
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#include <cpu/x86/lapic.h> #include <cpu/x86/lapic.h>
#include <console/console.h> #include <console/console.h>
void do_lapic_init(void) void lapic_virtual_wire_mode_init(void)
{ {
/* this is so interrupts work. This is very limited scope -- /* this is so interrupts work. This is very limited scope --
* linux will do better later, we hope ... * linux will do better later, we hope ...

View File

@ -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_read_around(x) lapic_read(x)
# define lapic_write_around(x, y) lapic_write_atomic((x), (y)) # 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 */ /* See if I need to initialize the local APIC */
static inline int need_lapic_init(void) static inline int need_lapic_init(void)
@ -84,7 +84,7 @@ static inline int need_lapic_init(void)
static inline void setup_lapic(void) static inline void setup_lapic(void)
{ {
if (need_lapic_init()) if (need_lapic_init())
do_lapic_init(); lapic_virtual_wire_mode_init();
else else
disable_lapic(); disable_lapic();
} }