]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/mm/nohash: do not flush the entire mm when range is a single page
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 23 Jan 2018 13:22:50 +0000 (14:22 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 27 Jan 2018 09:24:44 +0000 (20:24 +1100)
commit5c8136fa1af7c0e9b4aec89cf2832f6e5197ce32
treea8aadf6699651688193f374df647081770fbccc7
parentfc5f622163637308a3d520a315527481cff023f5
powerpc/mm/nohash: do not flush the entire mm when range is a single page

Most of the time, flush_tlb_range() is called on single pages.
At the time being, flush_tlb_range() inconditionnaly calls
flush_tlb_mm() which flushes at least the entire PID pages and on
older CPUs like 4xx or 8xx it flushes the entire TLB table.

This patch calls flush_tlb_page() instead of flush_tlb_mm() when
the range is a single page.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/tlb_nohash.c