riscv: use asm-generic/mmu_context.h for no-op implementations
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Pekka Enberg <penberg@kernel.org> Acked-by: Palmer Dabbelt <palmerdabbelt@google.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: linux-riscv@lists.infradead.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
f4b90e37e3
commit
2b56290d9f
arch/riscv/include/asm
|
@ -13,34 +13,16 @@
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
|
|
||||||
static inline void enter_lazy_tlb(struct mm_struct *mm,
|
|
||||||
struct task_struct *task)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Initialize context-related info for a new mm_struct */
|
|
||||||
static inline int init_new_context(struct task_struct *task,
|
|
||||||
struct mm_struct *mm)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void destroy_context(struct mm_struct *mm)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
void switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
||||||
struct task_struct *task);
|
struct task_struct *task);
|
||||||
|
|
||||||
|
#define activate_mm activate_mm
|
||||||
static inline void activate_mm(struct mm_struct *prev,
|
static inline void activate_mm(struct mm_struct *prev,
|
||||||
struct mm_struct *next)
|
struct mm_struct *next)
|
||||||
{
|
{
|
||||||
switch_mm(prev, next, NULL);
|
switch_mm(prev, next, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void deactivate_mm(struct task_struct *task,
|
#include <asm-generic/mmu_context.h>
|
||||||
struct mm_struct *mm)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* _ASM_RISCV_MMU_CONTEXT_H */
|
#endif /* _ASM_RISCV_MMU_CONTEXT_H */
|
||||||
|
|
Loading…
Reference in New Issue