We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a96f2 commit 7c7f154Copy full SHA for 7c7f154
arch/x86/mm/tlb.c
@@ -49,7 +49,13 @@ void leave_mm(int cpu)
49
if (cpumask_test_cpu(cpu, mm_cpumask(active_mm))) {
50
cpumask_clear_cpu(cpu, mm_cpumask(active_mm));
51
load_cr3(swapper_pg_dir);
52
- trace_tlb_flush(TLB_FLUSH_ON_TASK_SWITCH, TLB_FLUSH_ALL);
+ /*
53
+ * This gets called in the idle path where RCU
54
+ * functions differently. Tracing normally
55
+ * uses RCU, so we have to call the tracepoint
56
+ * specially here.
57
+ */
58
+ trace_tlb_flush_rcuidle(TLB_FLUSH_ON_TASK_SWITCH, TLB_FLUSH_ALL);
59
}
60
61
EXPORT_SYMBOL_GPL(leave_mm);
0 commit comments