loapic: get rid of function call overhead for _loapic_eoi()

We generally call this in interrupt code, and since it's just a register
write, get rid of all the function call overhead.

Change-Id: I251fa3cee0841fcdd8eecc7941d4d3782d112e66
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2015-11-04 13:47:12 -08:00 committed by Anas Nashif
commit 5e1ae08765
2 changed files with 23 additions and 24 deletions

View file

@ -244,8 +244,7 @@ int _loapic_init(struct device *unused)
LOAPIC_LVT_MASKED;
/* discard a pending interrupt if any */
*(volatile int *)(CONFIG_LOAPIC_BASE_ADDRESS + LOAPIC_EOI) = 0;
_loapic_eoi();
return 0;
}
@ -286,20 +285,6 @@ void _loapic_disable(void)
irq_unlock(oldLevel); /* UNLOCK INTERRUPTS */
}
/**
*
* @brief send EOI (End Of Interrupt) signal to Local APIC
*
* This routine sends an EOI signal to the Local APIC's interrupting source.
*
* @return N/A
*/
void _loapic_eoi(void)
{
*(volatile int *)(CONFIG_LOAPIC_BASE_ADDRESS + LOAPIC_EOI) = 0;
}
/**
*
* @brief Set the vector field in the specified RTE