powerpc/mm/thp: Use tlbiel if possible
If we know that user address space has never executed on other cpus we could use tlbiel. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
f1581bf14b
commit
d557b09800
@@ -425,7 +425,7 @@ static void native_hpte_invalidate(unsigned long slot, unsigned long vpn,
|
||||
static void native_hugepage_invalidate(unsigned long vsid,
|
||||
unsigned long addr,
|
||||
unsigned char *hpte_slot_array,
|
||||
int psize, int ssize)
|
||||
int psize, int ssize, int local)
|
||||
{
|
||||
int i;
|
||||
struct hash_pte *hptep;
|
||||
@@ -471,7 +471,7 @@ static void native_hugepage_invalidate(unsigned long vsid,
|
||||
* instruction compares entry_VA in tlb with the VA specified
|
||||
* here
|
||||
*/
|
||||
tlbie(vpn, psize, actual_psize, ssize, 0);
|
||||
tlbie(vpn, psize, actual_psize, ssize, local);
|
||||
}
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
Reference in New Issue
Block a user