projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
380f2c1
)
sh: convert pte_free_tlb() to use ptdescs
author
Vishal Moola (Oracle)
<vishal.moola@gmail.com>
Mon, 7 Aug 2023 23:05:09 +0000
(16:05 -0700)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:57 +0000
(13:37 -0700)
Part of the conversions to replace pgtable constructor/destructors with
ptdesc equivalents. Also cleans up some spacing issues.
Link:
https://lkml.kernel.org/r/20230807230513.102486-28-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Guo Ren <guoren@kernel.org>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Palmer Dabbelt <palmer@rivosinc.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/sh/include/asm/pgalloc.h
patch
|
blob
|
history
diff --git
a/arch/sh/include/asm/pgalloc.h
b/arch/sh/include/asm/pgalloc.h
index a9e98233c4d498a2fe3b4a282329d358102a942d..5d8577ab15911ee95186f3e6bfcaf17e95ac3a8c 100644
(file)
--- a/
arch/sh/include/asm/pgalloc.h
+++ b/
arch/sh/include/asm/pgalloc.h
@@
-2,6
+2,7
@@
#ifndef __ASM_SH_PGALLOC_H
#define __ASM_SH_PGALLOC_H
+#include <linux/mm.h>
#include <asm/page.h>
#define __HAVE_ARCH_PMD_ALLOC_ONE
@@
-31,10
+32,10
@@
static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd,
set_pmd(pmd, __pmd((unsigned long)page_address(pte)));
}
-#define __pte_free_tlb(tlb,
pte,addr)
\
-do { \
- p
gtable_pte_page_dtor(pte);
\
- tlb_remove_page
((tlb), (pte));
\
+#define __pte_free_tlb(tlb,
pte, addr)
\
+do {
\
+ p
agetable_pte_dtor(page_ptdesc(pte));
\
+ tlb_remove_page
_ptdesc((tlb), (page_ptdesc(pte)));
\
} while (0)
#endif /* __ASM_SH_PGALLOC_H */