Skip to content

Commit

Permalink
tty: replace in_irq() with in_hardirq()
Browse files Browse the repository at this point in the history
Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().

Reviewed-by: Jiri Slaby <[email protected]>
Signed-off-by: Changbin Du <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
changbindu authored and gregkh committed Aug 16, 2021
1 parent 87b8061 commit 1143637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/sysrq.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static void sysrq_handle_showallcpus(int key)
if (!trigger_all_cpu_backtrace()) {
struct pt_regs *regs = NULL;

if (in_irq())
if (in_hardirq())
regs = get_irq_regs();
if (regs) {
pr_info("CPU%d:\n", smp_processor_id());
Expand All @@ -280,7 +280,7 @@ static void sysrq_handle_showregs(int key)
{
struct pt_regs *regs = NULL;

if (in_irq())
if (in_hardirq())
regs = get_irq_regs();
if (regs)
show_regs(regs);
Expand Down

0 comments on commit 1143637

Please sign in to comment.