We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b12eb27 commit b9ef323Copy full SHA for b9ef323
arch/powerpc/include/asm/book3s/64/tlbflush-hash.h
@@ -32,6 +32,11 @@ static inline void arch_enter_lazy_mmu_mode(void)
32
33
if (radix_enabled())
34
return;
35
+ /*
36
+ * apply_to_page_range can call us this preempt enabled when
37
+ * operating on kernel page tables.
38
+ */
39
+ preempt_disable();
40
batch = this_cpu_ptr(&ppc64_tlb_batch);
41
batch->active = 1;
42
}
@@ -47,6 +52,7 @@ static inline void arch_leave_lazy_mmu_mode(void)
47
52
if (batch->index)
48
53
__flush_tlb_pending(batch);
49
54
batch->active = 0;
55
+ preempt_enable();
50
56
51
57
58
#define arch_flush_lazy_mmu_mode() do {} while (0)
0 commit comments