aboutsummaryrefslogtreecommitdiffstats
path: root/lib/nmi_backtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nmi_backtrace.c')
-rw-r--r--lib/nmi_backtrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nmi_backtrace.c b/lib/nmi_backtrace.c
index 75554754eadf..4e8a30d1c22f 100644
--- a/lib/nmi_backtrace.c
+++ b/lib/nmi_backtrace.c
@@ -17,6 +17,7 @@
17#include <linux/kprobes.h> 17#include <linux/kprobes.h>
18#include <linux/nmi.h> 18#include <linux/nmi.h>
19#include <linux/cpu.h> 19#include <linux/cpu.h>
20#include <linux/sched/debug.h>
20 21
21#ifdef arch_trigger_cpumask_backtrace 22#ifdef arch_trigger_cpumask_backtrace
22/* For reliability, we're prepared to waste bits here. */ 23/* For reliability, we're prepared to waste bits here. */
@@ -77,7 +78,7 @@ void nmi_trigger_cpumask_backtrace(const cpumask_t *mask,
77 * Force flush any remote buffers that might be stuck in IRQ context 78 * Force flush any remote buffers that might be stuck in IRQ context
78 * and therefore could not run their irq_work. 79 * and therefore could not run their irq_work.
79 */ 80 */
80 printk_nmi_flush(); 81 printk_safe_flush();
81 82
82 clear_bit_unlock(0, &backtrace_flag); 83 clear_bit_unlock(0, &backtrace_flag);
83 put_cpu(); 84 put_cpu();