projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87b8061
)
tty: replace in_irq() with in_hardirq()
author
Changbin Du
<changbin.du@gmail.com>
Sat, 14 Aug 2021 00:50:33 +0000
(08:50 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 16 Aug 2021 17:01:52 +0000
(19:01 +0200)
Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Link:
https://lore.kernel.org/r/20210814005033.2381-1-changbin.du@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/sysrq.c
patch
|
blob
|
history
diff --git
a/drivers/tty/sysrq.c
b/drivers/tty/sysrq.c
index 6628792431dc02a9410759e2ea7c649b3dc5bad6..c911196ac8935fe697e2c09efc175c8e644bc70a 100644
(file)
--- a/
drivers/tty/sysrq.c
+++ b/
drivers/tty/sysrq.c
@@
-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_
hard
irq())
regs = get_irq_regs();
if (regs) {
pr_info("CPU%d:\n", smp_processor_id());
@@
-280,7
+280,7
@@
static void sysrq_handle_showregs(int key)
{
struct pt_regs *regs = NULL;
- if (in_irq())
+ if (in_
hard
irq())
regs = get_irq_regs();
if (regs)
show_regs(regs);