Skip to content

Commit 3ed208d

Browse files
author
Fox Snowpatch
committed
1 parent 484dba3 commit 3ed208d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

arch/powerpc/mm/book3s64/hash_hugepage.c

+6-9
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,13 @@ int __hash_page_thp(unsigned long ea, unsigned long access, unsigned long vsid,
5959

6060
rflags = htab_convert_pte_flags(new_pmd, flags);
6161

62-
#if 0
63-
if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) {
62+
/*
63+
* THPs are only supported on platforms that can do mixed page size
64+
* segments (MPSS) and all such platforms have coherent icache. Hence we
65+
* don't need to do lazy icache flush (hash_page_do_lazy_icache()) on
66+
* noexecute fault.
67+
*/
6468

65-
/*
66-
* No CPU has hugepages but lacks no execute, so we
67-
* don't need to worry about that case
68-
*/
69-
rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap);
70-
}
71-
#endif
7269
/*
7370
* Find the slot index details for this ea, using base page size.
7471
*/

0 commit comments

Comments
 (0)