Rename _SpuriousIRQ to _irq_spurious

Renaming camelCase _SpuriousIRQ makes code more readable and
consistent.

Change-Id: I2bda4d107091384811d9f9187f3529960842631e
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2015-04-23 16:49:36 +03:00 committed by Anas Nashif
commit 2e0f3845f7
6 changed files with 23 additions and 23 deletions

View file

@ -145,7 +145,7 @@ void irq_priority_set(
} }
/* /*
* _SpuriousIRQ - spurious interrupt handler * _irq_spurious - spurious interrupt handler
* *
* Installed in all dynamic interrupt slots at boot time. Throws an error if * Installed in all dynamic interrupt slots at boot time. Throws an error if
* called. * called.
@ -154,10 +154,10 @@ void irq_priority_set(
*/ */
#include <misc/printk.h> #include <misc/printk.h>
void _SpuriousIRQ(void *unused) void _irq_spurious(void *unused)
{ {
ARG_UNUSED(unused); ARG_UNUSED(unused);
printk("_SpuriousIRQ(). Spinning...\n"); printk("_irq_spurious(). Spinning...\n");
for (;;) for (;;)
; ;
} }
@ -182,7 +182,7 @@ int irq_connect(
void *arg void *arg
) )
{ {
irq_handler_set(irq, _SpuriousIRQ, isr, arg); irq_handler_set(irq, _irq_spurious, isr, arg);
irq_priority_set(irq, prio); irq_priority_set(irq, prio);
return irq; return irq;
} }
@ -191,7 +191,7 @@ int irq_connect(
* irq_disconnect - disconnect an ISR from an interrupt line * irq_disconnect - disconnect an ISR from an interrupt line
* *
* Interrupt line <irq> is disconnected from its ISR and the latter is * Interrupt line <irq> is disconnected from its ISR and the latter is
* replaced by _SpuriousIRQ(). irq_disable() should have been called before * replaced by _irq_spurious(). irq_disable() should have been called before
* invoking this routine. * invoking this routine.
* *
* RETURNS: N/A * RETURNS: N/A
@ -201,5 +201,5 @@ void irq_disconnect(unsigned int irq)
{ {
int index = irq - 16; int index = irq - 16;
irq_handler_set(irq, _IsrTable[index].isr, _SpuriousIRQ, NULL); irq_handler_set(irq, _IsrTable[index].isr, _irq_spurious, NULL);
} }

View file

@ -133,7 +133,7 @@ void irq_priority_set(unsigned int irq,
/******************************************************************************* /*******************************************************************************
* *
* _SpuriousIRQ - spurious interrupt handler * _irq_spurious - spurious interrupt handler
* *
* Installed in all dynamic interrupt slots at boot time. Throws an error if * Installed in all dynamic interrupt slots at boot time. Throws an error if
* called. * called.
@ -143,7 +143,7 @@ void irq_priority_set(unsigned int irq,
* RETURNS: N/A * RETURNS: N/A
*/ */
void _SpuriousIRQ(void *unused) void _irq_spurious(void *unused)
{ {
ARG_UNUSED(unused); ARG_UNUSED(unused);
__reserved(); __reserved();
@ -167,7 +167,7 @@ int irq_connect(unsigned int irq,
void (*isr)(void *arg), void (*isr)(void *arg),
void *arg) void *arg)
{ {
irq_handler_set(irq, _SpuriousIRQ, isr, arg); irq_handler_set(irq, _irq_spurious, isr, arg);
irq_priority_set(irq, prio); irq_priority_set(irq, prio);
return irq; return irq;
} }
@ -177,7 +177,7 @@ int irq_connect(unsigned int irq,
* irq_disconnect - disconnect an ISR from an interrupt line * irq_disconnect - disconnect an ISR from an interrupt line
* *
* Interrupt line <irq> (exception #<irq>+16) is disconnected from its ISR and * Interrupt line <irq> (exception #<irq>+16) is disconnected from its ISR and
* the latter is replaced by _SpuriousIRQ(). irq_disable() should have * the latter is replaced by _irq_spurious(). irq_disable() should have
* been called before invoking this routine. * been called before invoking this routine.
* *
* RETURNS: N/A * RETURNS: N/A
@ -185,5 +185,5 @@ int irq_connect(unsigned int irq,
void irq_disconnect(unsigned int irq) void irq_disconnect(unsigned int irq)
{ {
irq_handler_set(irq, _IsrTable[irq].isr, _SpuriousIRQ, NULL); irq_handler_set(irq, _IsrTable[irq].isr, _irq_spurious, NULL);
} }

View file

@ -61,7 +61,7 @@ vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
#elif !defined(CONFIG_IRQ_VECTOR_TABLE_CUSTOM) #elif !defined(CONFIG_IRQ_VECTOR_TABLE_CUSTOM)
extern void _SpuriousIRQ(void); extern void _irq_spurious(void);
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
static void _uart_console_isr(void) static void _uart_console_isr(void)
@ -73,7 +73,7 @@ static void _uart_console_isr(void)
/* placeholders: fill with real ISRs */ /* placeholders: fill with real ISRs */
vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = { vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
[0 ...(CONFIG_NUM_IRQS - 1)] = _SpuriousIRQ, [0 ...(CONFIG_NUM_IRQS - 1)] = _irq_spurious,
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
[CONFIG_UART_CONSOLE_IRQ] = _uart_console_isr, [CONFIG_UART_CONSOLE_IRQ] = _uart_console_isr,
#endif #endif

View file

@ -34,14 +34,14 @@
DESCRIPTION DESCRIPTION
This contains the ISR table meant to be used for ISRs that take a parameter. This contains the ISR table meant to be used for ISRs that take a parameter.
It is also used when ISRs are to be connected at runtime, and in this case It is also used when ISRs are to be connected at runtime, and in this case
provides a table that is filled with _SpuriousIRQ bindings. provides a table that is filled with _irq_spurious bindings.
*/ */
#include <toolchain.h> #include <toolchain.h>
#include <sections.h> #include <sections.h>
#include <sw_isr_table.h> #include <sw_isr_table.h>
extern void _SpuriousIRQ(void *arg); extern void _irq_spurious(void *arg);
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
#include <board.h> #include <board.h>
@ -52,7 +52,7 @@ extern void _SpuriousIRQ(void *arg);
_IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = { _IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = {
[0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA, [0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA,
[0 ...(CONFIG_NUM_IRQS - 1)].isr = _SpuriousIRQ, [0 ...(CONFIG_NUM_IRQS - 1)].isr = _irq_spurious,
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
[CONFIG_UART_CONSOLE_IRQ].arg = NULL, [CONFIG_UART_CONSOLE_IRQ].arg = NULL,
[CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr, [CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr,
@ -67,7 +67,7 @@ _IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = {
_IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = { _IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = {
[0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA, [0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA,
[0 ...(CONFIG_NUM_IRQS - 1)].isr = _SpuriousIRQ, [0 ...(CONFIG_NUM_IRQS - 1)].isr = _irq_spurious,
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
[CONFIG_UART_CONSOLE_IRQ].arg = NULL, [CONFIG_UART_CONSOLE_IRQ].arg = NULL,
[CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr, [CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr,

View file

@ -61,7 +61,7 @@ vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
#elif !defined(CONFIG_IRQ_VECTOR_TABLE_CUSTOM) #elif !defined(CONFIG_IRQ_VECTOR_TABLE_CUSTOM)
extern void _SpuriousIRQ(void); extern void _irq_spurious(void);
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
static void _uart_console_isr(void) static void _uart_console_isr(void)
@ -73,7 +73,7 @@ static void _uart_console_isr(void)
/* placeholders: fill with real ISRs */ /* placeholders: fill with real ISRs */
vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = { vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
[0 ...(CONFIG_NUM_IRQS - 1)] = _SpuriousIRQ, [0 ...(CONFIG_NUM_IRQS - 1)] = _irq_spurious,
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
[CONFIG_UART_CONSOLE_IRQ] = _uart_console_isr, [CONFIG_UART_CONSOLE_IRQ] = _uart_console_isr,
#endif #endif

View file

@ -34,14 +34,14 @@
DESCRIPTION DESCRIPTION
This contains the ISR table meant to be used for ISRs that take a parameter. This contains the ISR table meant to be used for ISRs that take a parameter.
It is also used when ISRs are to be connected at runtime, and in this case It is also used when ISRs are to be connected at runtime, and in this case
provides a table that is filled with _SpuriousIRQ bindings. provides a table that is filled with _irq_spurious bindings.
*/ */
#include <toolchain.h> #include <toolchain.h>
#include <sections.h> #include <sections.h>
#include <sw_isr_table.h> #include <sw_isr_table.h>
extern void _SpuriousIRQ(void *arg); extern void _irq_spurious(void *arg);
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
#include <board.h> #include <board.h>
@ -52,7 +52,7 @@ extern void _SpuriousIRQ(void *arg);
_IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = { _IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = {
[0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA, [0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA,
[0 ...(CONFIG_NUM_IRQS - 1)].isr = _SpuriousIRQ, [0 ...(CONFIG_NUM_IRQS - 1)].isr = _irq_spurious,
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
[CONFIG_UART_CONSOLE_IRQ].arg = NULL, [CONFIG_UART_CONSOLE_IRQ].arg = NULL,
[CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr, [CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr,
@ -67,7 +67,7 @@ _IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = {
_IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = { _IsrTableEntry_t __isr_table_section _IsrTable[CONFIG_NUM_IRQS] = {
[0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA, [0 ...(CONFIG_NUM_IRQS - 1)].arg = (void *)0xABAD1DEA,
[0 ...(CONFIG_NUM_IRQS - 1)].isr = _SpuriousIRQ, [0 ...(CONFIG_NUM_IRQS - 1)].isr = _irq_spurious,
#if defined(CONFIG_CONSOLE_HANDLER) #if defined(CONFIG_CONSOLE_HANDLER)
[CONFIG_UART_CONSOLE_IRQ].arg = NULL, [CONFIG_UART_CONSOLE_IRQ].arg = NULL,
[CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr, [CONFIG_UART_CONSOLE_IRQ].isr = uart_console_isr,