summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Boie <andrew.p.boie@intel.com>2016-03-03 09:50:39 -0800
committerGerrit Code Review <gerrit@zephyrproject.org>2016-03-04 18:52:53 +0000
commit24f6f36ad639f6db1ddf56b516dde6b6fb3f188f (patch)
treead066c16b688df03df8c892ba60723162a43ed67
parentb5e26faceb251eedccc1811af2b1091b00e80d5f (diff)
system_apic: rename irq_enable/disable
Make this explicit to conform to the abstraction layer defined in include/irq.h This only worked before because the preprocessor was substituting the function prototypes. Change-Id: Id4d46b01f1c53c3a942772640023e23796eeb43b Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
-rw-r--r--drivers/interrupt_controller/system_apic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/interrupt_controller/system_apic.c b/drivers/interrupt_controller/system_apic.c
index 7049df482..9bd1b88a9 100644
--- a/drivers/interrupt_controller/system_apic.c
+++ b/drivers/interrupt_controller/system_apic.c
@@ -26,6 +26,7 @@
#include <arch/cpu.h>
#include <drivers/ioapic.h>
#include <drivers/loapic.h>
+#include <irq.h>
#if !defined(LOAPIC_IRQ_BASE) && !defined (LOAPIC_IRQ_COUNT)
@@ -172,7 +173,7 @@ void _SysIntVecProgram(unsigned int vector, unsigned int irq, uint32_t flags)
*
* @return N/A
*/
-void irq_enable(unsigned int irq)
+void _arch_irq_enable(unsigned int irq)
{
if (IS_IOAPIC_IRQ(irq)) {
_ioapic_irq_enable(irq);
@@ -192,7 +193,7 @@ void irq_enable(unsigned int irq)
*
* @return N/A
*/
-void irq_disable(unsigned int irq)
+void _arch_irq_disable(unsigned int irq)
{
if (IS_IOAPIC_IRQ(irq)) {
_ioapic_irq_disable(irq);