pgtable.h (6cc07821adce44e864c3752a3842936a6a7f6aef) pgtable.h (3e7318584dfec11992f3ac45658c4bc1210b3778)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_POWERPC_NOHASH_PGTABLE_H
3#define _ASM_POWERPC_NOHASH_PGTABLE_H
4
5#if defined(CONFIG_PPC64)
6#include <asm/nohash/64/pgtable.h>
7#else
8#include <asm/nohash/32/pgtable.h>

--- 252 unchanged lines hidden (view full) ---

261#endif
262
263/*
264 * This gets called at the end of handling a page fault, when
265 * the kernel has put a new PTE into the page table for the process.
266 * We use it to ensure coherency between the i-cache and d-cache
267 * for the page which has just been mapped in.
268 */
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_POWERPC_NOHASH_PGTABLE_H
3#define _ASM_POWERPC_NOHASH_PGTABLE_H
4
5#if defined(CONFIG_PPC64)
6#include <asm/nohash/64/pgtable.h>
7#else
8#include <asm/nohash/32/pgtable.h>

--- 252 unchanged lines hidden (view full) ---

261#endif
262
263/*
264 * This gets called at the end of handling a page fault, when
265 * the kernel has put a new PTE into the page table for the process.
266 * We use it to ensure coherency between the i-cache and d-cache
267 * for the page which has just been mapped in.
268 */
269#if defined(CONFIG_PPC_FSL_BOOK3E) && defined(CONFIG_HUGETLB_PAGE)
269#if defined(CONFIG_PPC_E500) && defined(CONFIG_HUGETLB_PAGE)
270void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep);
271#else
272static inline
273void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep) {}
274#endif
275
276#endif /* __ASSEMBLY__ */
277#endif
270void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep);
271#else
272static inline
273void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep) {}
274#endif
275
276#endif /* __ASSEMBLY__ */
277#endif