Skip to content

Commit

Permalink
s390/irq: use call_on_stack() macro
Browse files Browse the repository at this point in the history
Reviewed-by: Sven Schnelle <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
  • Loading branch information
hcahca authored and Vasily Gorbik committed Jul 8, 2021
1 parent 7c496e6 commit de55689
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arch/s390/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ static int on_async_stack(void)

static void do_irq_async(struct pt_regs *regs, int irq)
{
if (on_async_stack())
if (on_async_stack()) {
do_IRQ(regs, irq);
else
CALL_ON_STACK(do_IRQ, S390_lowcore.async_stack, 2, regs, irq);
} else {
call_on_stack(2, S390_lowcore.async_stack, void, do_IRQ,
struct pt_regs *, regs, int, irq);
}
}

static int irq_pending(struct pt_regs *regs)
Expand Down

0 comments on commit de55689

Please sign in to comment.