Kevin Brodsky <[email protected]> writes: > A per-CPU batch struct is activated when entering lazy MMU mode; its > lifetime is the same as the lazy MMU section (it is deactivated when > leaving the mode). Preemption is disabled in that interval to ensure > that the per-CPU reference remains valid. > > The generic lazy_mmu layer now tracks whether a task is in lazy MMU > mode. We can therefore use the generic helper in_lazy_mmu_mode() > to tell whether a batch struct is active instead of tracking it > explicitly. > > Signed-off-by: Kevin Brodsky <[email protected]> > --- > arch/powerpc/include/asm/book3s/64/tlbflush-hash.h | 9 --------- > arch/powerpc/mm/book3s64/hash_tlb.c | 2 +- > 2 files changed, 1 insertion(+), 10 deletions(-) >
This looks good to me. Reviewed-by: Ritesh Harjani (IBM) <[email protected]>
