Commit cc8c69ce authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka
Browse files

ipipe: rename __fixup_irq_handler() to __ipipe_setup_irq_desc()



To clarify naming and purpose: this is a pipeline-specific routine,
which further prepares an interrupt descriptor for receiving events
for the most part, swapping the interrupt flow handler specifically
for chained IRQs (not the interrupt handler per se).
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 4e7a5e7c
......@@ -191,8 +191,8 @@ static inline int irq_desc_has_action(struct irq_desc *desc)
}
irq_flow_handler_t
__fixup_irq_handler(struct irq_desc *desc, irq_flow_handler_t handle,
int is_chained);
__ipipe_setup_irq_desc(struct irq_desc *desc, irq_flow_handler_t handle,
int is_chained);
static inline int irq_has_action(unsigned int irq)
{
......@@ -214,7 +214,7 @@ static inline void irq_set_handler_locked(struct irq_data *data,
{
struct irq_desc *desc = irq_data_to_desc(data);
desc->handle_irq = __fixup_irq_handler(desc, handler, 0);
desc->handle_irq = __ipipe_setup_irq_desc(desc, handler, 0);
}
/**
......@@ -235,7 +235,7 @@ irq_set_chip_handler_name_locked(struct irq_data *data, struct irq_chip *chip,
{
struct irq_desc *desc = irq_data_to_desc(data);
desc->handle_irq = __fixup_irq_handler(desc, handler, 0);
desc->handle_irq = __ipipe_setup_irq_desc(desc, handler, 0);
desc->name = name;
data->chip = chip;
}
......
......@@ -1092,7 +1092,7 @@ static void __ipipe_ack_bad_irq(struct irq_desc *desc)
}
irq_flow_handler_t
__fixup_irq_handler(struct irq_desc *desc, irq_flow_handler_t handle, int is_chained)
__ipipe_setup_irq_desc(struct irq_desc *desc, irq_flow_handler_t handle, int is_chained)
{
if (unlikely(handle == NULL)) {
desc->ipipe_ack = __ipipe_ack_bad_irq;
......@@ -1192,13 +1192,13 @@ EXPORT_SYMBOL_GPL(ipipe_enable_irq);
#else /* !CONFIG_IPIPE */
irq_flow_handler_t
__fixup_irq_handler(struct irq_desc *desc, irq_flow_handler_t handle, int is_chained)
__ipipe_setup_irq_desc(struct irq_desc *desc, irq_flow_handler_t handle, int is_chained)
{
return handle;
}
#endif /* !CONFIG_IPIPE */
EXPORT_SYMBOL_GPL(__fixup_irq_handler);
EXPORT_SYMBOL_GPL(__ipipe_setup_irq_desc);
static void
__irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
......@@ -1234,7 +1234,7 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
return;
}
handle = __fixup_irq_handler(desc, handle, is_chained);
handle = __ipipe_setup_irq_desc(desc, handle, is_chained);
/* Uninstall? */
if (handle == handle_bad_irq) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment