hv: fixed compiling warning

removed some unnecessary variables and functions.

v1-->v2:
   Replace div-by-zero with an inline ASM code

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Mingqiang Chi
2018-08-16 10:31:56 +08:00
committed by lijinxia
parent 40745d90c5
commit bdcc3aef22
12 changed files with 13 additions and 72 deletions

View File

@@ -391,21 +391,6 @@ void setup_ioapic_irq(void)
ASSERT(nr_gsi <= NR_MAX_GSI, "GSI table overflow");
}
static void dump_ioapic(void)
{
uint32_t irq;
for (irq = 0U; irq < nr_gsi; irq++) {
void *addr = gsi_table[irq].addr;
uint8_t pin = gsi_table[irq].pin;
union ioapic_rte rte;
ioapic_get_rte_entry(addr, pin, &rte);
dev_dbg(ACRN_DBG_IRQ, "DUMP: irq:%d pin:%hhu rte:%lx",
irq, pin, rte.full);
}
}
void suspend_ioapic(void)
{
uint8_t ioapic_id, ioapic_pin;