mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: vioapic: minor refine about vioapic_init
Most code in the if ... else is duplicated. We could put it out of the conditional statement. Tracked-On: #4550 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <apicreg.h>
|
||||
#include <ioapic.h>
|
||||
#include <util.h>
|
||||
|
||||
#define VIOAPIC_BASE 0xFEC00000UL
|
||||
@@ -55,10 +56,7 @@
|
||||
struct acrn_single_vioapic {
|
||||
spinlock_t mtx;
|
||||
struct acrn_vm *vm;
|
||||
uint32_t base_addr;
|
||||
uint32_t nr_pins;
|
||||
uint32_t gsi_base;
|
||||
uint32_t id;
|
||||
struct ioapic_info chipinfo;
|
||||
bool ready;
|
||||
uint32_t ioregsel;
|
||||
union ioapic_rte rtbl[REDIR_ENTRIES_HW];
|
||||
|
Reference in New Issue
Block a user