blob: 360f713d009b023e6915e6b907db6ca5ecdfcfad [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_SH_TLB_H
3#define __ASM_SH_TLB_H
4
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005#ifndef __ASSEMBLY__
6#include <linux/pagemap.h>
7
8#ifdef CONFIG_MMU
9#include <linux/swap.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000010
David Brazdil0f672f62019-12-10 10:32:29 +000011#include <asm-generic/tlb.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012
Olivier Deprez157378f2022-04-04 15:47:50 +020013#if defined(CONFIG_CPU_SH4)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000014extern void tlb_wire_entry(struct vm_area_struct *, unsigned long, pte_t);
15extern void tlb_unwire_entry(void);
16#else
17static inline void tlb_wire_entry(struct vm_area_struct *vma ,
18 unsigned long addr, pte_t pte)
19{
20 BUG();
21}
22
23static inline void tlb_unwire_entry(void)
24{
25 BUG();
26}
27#endif
28
29#else /* CONFIG_MMU */
30
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000031#include <asm-generic/tlb.h>
32
33#endif /* CONFIG_MMU */
34#endif /* __ASSEMBLY__ */
35#endif /* __ASM_SH_TLB_H */