]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/sparc/include/asm/tlb_64.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / sparc / include / asm / tlb_64.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
f5e706ad
SR
2#ifndef _SPARC64_TLB_H
3#define _SPARC64_TLB_H
4
5#include <linux/swap.h>
6#include <linux/pagemap.h>
7#include <asm/pgalloc.h>
8#include <asm/tlbflush.h>
9#include <asm/mmu_context.h>
10
f5e706ad 11#ifdef CONFIG_SMP
f05a6865 12void smp_flush_tlb_pending(struct mm_struct *,
f5e706ad
SR
13 unsigned long, unsigned long *);
14#endif
15
f5e706ad 16#ifdef CONFIG_SMP
f05a6865 17void smp_flush_tlb_mm(struct mm_struct *mm);
f5e706ad
SR
18#define do_flush_tlb_mm(mm) smp_flush_tlb_mm(mm)
19#else
20#define do_flush_tlb_mm(mm) __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT)
21#endif
22
f05a6865
SR
23void __flush_tlb_pending(unsigned long, unsigned long, unsigned long *);
24void flush_tlb_pending(void);
f5e706ad 25
f5e706ad
SR
26#define tlb_start_vma(tlb, vma) do { } while (0)
27#define tlb_end_vma(tlb, vma) do { } while (0)
90f08e39
PZ
28#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
29#define tlb_flush(tlb) flush_tlb_pending()
30
31#include <asm-generic/tlb.h>
f5e706ad
SR
32
33#endif /* _SPARC64_TLB_H */