]> git.baikalelectronics.ru Git - kernel.git/commitdiff
xtensa: drop definition of PGD_ORDER
authorMike Rapoport <rppt@linux.ibm.com>
Sun, 3 Jul 2022 14:12:03 +0000 (17:12 +0300)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:44 +0000 (17:14 -0700)
This is the order of the page table allocation, not the order of a PGD.
Since its always hardwired to 0, simply drop it.

Link: https://lkml.kernel.org/r/20220703141203.147893-15-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Helge Deller <deller@gmx.de>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Guo Ren <guoren@kernel.org>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Xuerui Wang <kernel@xen0n.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/xtensa/include/asm/pgalloc.h
arch/xtensa/include/asm/pgtable.h

index eeb2de3a89e575166eb6b780e2e50baaedcc68b3..7fc0f9126dd3545d7203947dbdfe0f65f3f87a58 100644 (file)
@@ -29,7 +29,7 @@
 static inline pgd_t*
 pgd_alloc(struct mm_struct *mm)
 {
-       return (pgd_t*) __get_free_pages(GFP_KERNEL | __GFP_ZERO, PGD_ORDER);
+       return (pgd_t*) __get_free_page(GFP_KERNEL | __GFP_ZERO);
 }
 
 static inline void ptes_clear(pte_t *ptep)
index e0d5531ae00d02df0297e515433efbd36a5170aa..54f577c13afa1ecb9349332ed22a7d7ae471be63 100644 (file)
@@ -57,7 +57,6 @@
 #define PTRS_PER_PTE           1024
 #define PTRS_PER_PTE_SHIFT     10
 #define PTRS_PER_PGD           1024
-#define PGD_ORDER              0
 #define USER_PTRS_PER_PGD      (TASK_SIZE/PGDIR_SIZE)
 #define FIRST_USER_PGD_NR      (FIRST_USER_ADDRESS >> PGDIR_SHIFT)