Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Link: https://lkml.kernel.org/r/20210930000342.6016-1-changbin.du@gmail.com
Showing the changes to kernel (2 of 2 files). Show all
Unified · Split
| @@ -890,7 +890,7 @@ static inline int ftrace_graph_addr(struct ftrace_graph_ent *trace) · 889 unmodified lines | ||
| 890 | 890 | * is set, and called by an interrupt handler, we still |
| 891 | 891 | * want to trace it. |
| 892 | 892 | */ |
| 893 | − if (in_irq()) | |
| 893 | + if (in_hardirq()) | |
| 894 | 894 | trace_recursion_set(TRACE_IRQ_BIT); |
| 895 | 895 | else |
| 896 | 896 | trace_recursion_clear(TRACE_IRQ_BIT); |
| @@ -120,7 +120,7 @@ static inline int ftrace_graph_ignore_irqs(void) · 119 unmodified lines | ||
| 120 | 120 | if (!ftrace_graph_skip_irqs || trace_recursion_test(TRACE_IRQ_BIT)) |
| 121 | 121 | return 0; |
| 122 | 122 | |
| 123 | − return in_irq(); | |
| 123 | + return in_hardirq(); | |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | int trace_graph_entry(struct ftrace_graph_ent *trace) |