parisc: use asm-generic/mmu_context.h for no-op implementations

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: linux-parisc@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Nicholas Piggin 2020-09-02 00:15:31 +10:00 коммит произвёл Arnd Bergmann
Родитель 5449edc5db
Коммит 4146bdab31
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -7,16 +7,13 @@
#include <linux/atomic.h> #include <linux/atomic.h>
#include <asm-generic/mm_hooks.h> #include <asm-generic/mm_hooks.h>
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
{
}
/* on PA-RISC, we actually have enough contexts to justify an allocator /* on PA-RISC, we actually have enough contexts to justify an allocator
* for them. prumpf */ * for them. prumpf */
extern unsigned long alloc_sid(void); extern unsigned long alloc_sid(void);
extern void free_sid(unsigned long); extern void free_sid(unsigned long);
#define init_new_context init_new_context
static inline int static inline int
init_new_context(struct task_struct *tsk, struct mm_struct *mm) init_new_context(struct task_struct *tsk, struct mm_struct *mm)
{ {
@ -26,6 +23,7 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm)
return 0; return 0;
} }
#define destroy_context destroy_context
static inline void static inline void
destroy_context(struct mm_struct *mm) destroy_context(struct mm_struct *mm)
{ {
@ -71,8 +69,7 @@ static inline void switch_mm(struct mm_struct *prev,
} }
#define switch_mm_irqs_off switch_mm_irqs_off #define switch_mm_irqs_off switch_mm_irqs_off
#define deactivate_mm(tsk,mm) do { } while (0) #define activate_mm activate_mm
static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next)
{ {
/* /*
@ -90,4 +87,7 @@ static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next)
switch_mm(prev,next,current); switch_mm(prev,next,current);
} }
#include <asm-generic/mmu_context.h>
#endif #endif