Skip to content

Commit 9620301

Browse files
committed
genirq: Remove handle_enforce_irqctx() wrapper
Now that it is unconditionally available, remove the wrapper. Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 8d187a7 commit 9620301

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

kernel/irq/internals.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,6 @@ static inline bool irq_fixup_move_pending(struct irq_desc *desc, bool fclear)
469469
}
470470
#endif /* !CONFIG_GENERIC_PENDING_IRQ */
471471

472-
static inline bool handle_enforce_irqctx(struct irq_data *data)
473-
{
474-
return irqd_is_handle_enforce_irqctx(data);
475-
}
476-
477472
#if !defined(CONFIG_IRQ_DOMAIN) || !defined(CONFIG_IRQ_DOMAIN_HIERARCHY)
478473
static inline int irq_domain_activate_irq(struct irq_data *data, bool reserve)
479474
{

kernel/irq/irqdesc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ int handle_irq_desc(struct irq_desc *desc)
708708
return -EINVAL;
709709

710710
data = irq_desc_get_irq_data(desc);
711-
if (WARN_ON_ONCE(!in_hardirq() && handle_enforce_irqctx(data)))
711+
if (WARN_ON_ONCE(!in_hardirq() && irqd_is_handle_enforce_irqctx(data)))
712712
return -EPERM;
713713

714714
generic_handle_irq_desc(desc);

kernel/irq/resend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static int irq_sw_resend(struct irq_desc *desc)
5353
* Validate whether this interrupt can be safely injected from
5454
* non interrupt context
5555
*/
56-
if (handle_enforce_irqctx(&desc->irq_data))
56+
if (irqd_is_handle_enforce_irqctx(&desc->irq_data))
5757
return -EINVAL;
5858

5959
/*

0 commit comments

Comments
 (0)