Skip to content

Commit 7850258

Browse files
KAGA-KOKOtorvalds
authored andcommitted
powerpc/mm/highmem: use __set_pte_at() for kmap_local()
The original PowerPC highmem mapping function used __set_pte_at() to denote that the mapping is per CPU. This got lost with the conversion to the generic implementation. Override the default map function. Link: https://lkml.kernel.org/r/[email protected] Fixes: 47da42b ("powerpc/mm/highmem: Switch to generic kmap atomic") Signed-off-by: Thomas Gleixner <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Paul Cercueil <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8c0d5d7 commit 7850258

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/powerpc/include/asm/highmem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ extern pte_t *pkmap_page_table;
5858

5959
#define flush_cache_kmaps() flush_cache_all()
6060

61+
#define arch_kmap_local_set_pte(mm, vaddr, ptep, ptev) \
62+
__set_pte_at(mm, vaddr, ptep, ptev, 1)
6163
#define arch_kmap_local_post_map(vaddr, pteval) \
6264
local_flush_tlb_page(NULL, vaddr)
6365
#define arch_kmap_local_post_unmap(vaddr) \

0 commit comments

Comments
 (0)