tlbflush.h (c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2) tlbflush.h (df24e1783e6e0eb3dc0e3ba5a8df3bb0cc537408)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _PARISC_TLBFLUSH_H
3#define _PARISC_TLBFLUSH_H
4
5/* TLB flushing routines.... */
6
7#include <linux/mm.h>
8#include <linux/sched.h>
9#include <asm/mmu_context.h>
10
11extern void flush_tlb_all(void);
12extern void flush_tlb_all_local(void *);
13
14#define smp_flush_tlb_all() flush_tlb_all()
15
16int __flush_tlb_range(unsigned long sid,
17 unsigned long start, unsigned long end);
18
19#define flush_tlb_range(vma, start, end) \
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _PARISC_TLBFLUSH_H
3#define _PARISC_TLBFLUSH_H
4
5/* TLB flushing routines.... */
6
7#include <linux/mm.h>
8#include <linux/sched.h>
9#include <asm/mmu_context.h>
10
11extern void flush_tlb_all(void);
12extern void flush_tlb_all_local(void *);
13
14#define smp_flush_tlb_all() flush_tlb_all()
15
16int __flush_tlb_range(unsigned long sid,
17 unsigned long start, unsigned long end);
18
19#define flush_tlb_range(vma, start, end) \
20 __flush_tlb_range((vma)->vm_mm->context, start, end)
20 __flush_tlb_range((vma)->vm_mm->context.space_id, start, end)
21
22#define flush_tlb_kernel_range(start, end) \
23 __flush_tlb_range(0, start, end)
24
25/*
26 * flush_tlb_mm()
27 *
28 * The code to switch to a new context is NOT valid for processes

--- 41 unchanged lines hidden ---
21
22#define flush_tlb_kernel_range(start, end) \
23 __flush_tlb_range(0, start, end)
24
25/*
26 * flush_tlb_mm()
27 *
28 * The code to switch to a new context is NOT valid for processes

--- 41 unchanged lines hidden ---