Skip to content

Commit 0ae6122

Browse files
Dinh Nguyentorvalds
authored andcommitted
Revert "nios2: Convert __pte_free_tlb() to use ptdescs"
This reverts commit 6ebe94b. The patch "nios2: Convert __pte_free_tlb() to use ptdescs" was supposed to go together with a patchset that Vishal Moola had planned taking it through the mm tree. By just having this patch, all NIOS2 builds are broken. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6f61257 commit 0ae6122

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

arch/nios2/include/asm/pgalloc.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd,
2828

2929
extern pgd_t *pgd_alloc(struct mm_struct *mm);
3030

31-
#define __pte_free_tlb(tlb, pte, addr) \
32-
do { \
33-
pagetable_pte_dtor(page_ptdesc(pte)); \
34-
tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \
31+
#define __pte_free_tlb(tlb, pte, addr) \
32+
do { \
33+
pgtable_pte_page_dtor(pte); \
34+
tlb_remove_page((tlb), (pte)); \
3535
} while (0)
3636

3737
#endif /* _ASM_NIOS2_PGALLOC_H */

0 commit comments

Comments
 (0)