trace: in_irq() cleanup
PATCH 1/1 trace: in_irq() cleanup
Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq().
Signed-off-by Changbin Du <[email protected]>
Reviewed-by Petr Mladek <[email protected]>
--- kernel/trace/trace.h | 2 +- kernel/trace/trace_functions_graph.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
kernel/trace/trace.h +1 -1
@@ -881,7 +881,7 @@ static inline int ftrace_graph_addr(struct ftrace_graph_ent *trace)* is set, and called by an interrupt handler, we still * want to trace it. */ -if (in_irq ()) +if (in_hardirq ())trace_recursion_set (TRACE_IRQ_BIT );else trace_recursion_clear (TRACE_IRQ_BIT );
kernel/trace/trace_functions_graph.c +1 -1
@@ -120,7 +120,7 @@ static inline int ftrace_graph_ignore_irqs(void)if (!ftrace_graph_skip_irqs ||trace_recursion_test (TRACE_IRQ_BIT ))return 0 ; -return in_irq (); +return in_hardirq (); }int trace_graph_entry (struct ftrace_graph_ent *trace)
Signature · 1 line
2.32.0