Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / riscv / include / asm / mmu_context.h
blob250defa06f3ad156de74cf1d73afd12d6c32159e
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2012 Regents of the University of California
4 * Copyright (C) 2017 SiFive
5 */
7 #ifndef _ASM_RISCV_MMU_CONTEXT_H
8 #define _ASM_RISCV_MMU_CONTEXT_H
10 #include <linux/mm_types.h>
11 #include <asm-generic/mm_hooks.h>
13 #include <linux/mm.h>
14 #include <linux/sched.h>
16 void switch_mm(struct mm_struct *prev, struct mm_struct *next,
17 struct task_struct *task);
19 #define activate_mm activate_mm
20 static inline void activate_mm(struct mm_struct *prev,
21 struct mm_struct *next)
23 switch_mm(prev, next, NULL);
26 #include <asm-generic/mmu_context.h>
28 #endif /* _ASM_RISCV_MMU_CONTEXT_H */