mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
ia64: use asm-generic/mmu_context.h for no-op implementations
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: linux-ia64@vger.kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
committed by
Arnd Bergmann
parent
c96c177a94
commit
8e51efc2d7
@@ -49,11 +49,6 @@ DECLARE_PER_CPU(u8, ia64_need_tlb_flush);
|
|||||||
extern void mmu_context_init (void);
|
extern void mmu_context_init (void);
|
||||||
extern void wrap_mmu_context (struct mm_struct *mm);
|
extern void wrap_mmu_context (struct mm_struct *mm);
|
||||||
|
|
||||||
static inline void
|
|
||||||
enter_lazy_tlb (struct mm_struct *mm, struct task_struct *tsk)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When the context counter wraps around all TLBs need to be flushed because
|
* When the context counter wraps around all TLBs need to be flushed because
|
||||||
* an old context number might have been reused. This is signalled by the
|
* an old context number might have been reused. This is signalled by the
|
||||||
@@ -116,6 +111,7 @@ out:
|
|||||||
* Initialize context number to some sane value. MM is guaranteed to be a
|
* Initialize context number to some sane value. MM is guaranteed to be a
|
||||||
* brand-new address-space, so no TLB flushing is needed, ever.
|
* brand-new address-space, so no TLB flushing is needed, ever.
|
||||||
*/
|
*/
|
||||||
|
#define init_new_context init_new_context
|
||||||
static inline int
|
static inline int
|
||||||
init_new_context (struct task_struct *p, struct mm_struct *mm)
|
init_new_context (struct task_struct *p, struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
@@ -123,12 +119,6 @@ init_new_context (struct task_struct *p, struct mm_struct *mm)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
|
||||||
destroy_context (struct mm_struct *mm)
|
|
||||||
{
|
|
||||||
/* Nothing to do. */
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
reload_context (nv_mm_context_t context)
|
reload_context (nv_mm_context_t context)
|
||||||
{
|
{
|
||||||
@@ -178,11 +168,10 @@ activate_context (struct mm_struct *mm)
|
|||||||
} while (unlikely(context != mm->context));
|
} while (unlikely(context != mm->context));
|
||||||
}
|
}
|
||||||
|
|
||||||
#define deactivate_mm(tsk,mm) do { } while (0)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Switch from address space PREV to address space NEXT.
|
* Switch from address space PREV to address space NEXT.
|
||||||
*/
|
*/
|
||||||
|
#define activate_mm activate_mm
|
||||||
static inline void
|
static inline void
|
||||||
activate_mm (struct mm_struct *prev, struct mm_struct *next)
|
activate_mm (struct mm_struct *prev, struct mm_struct *next)
|
||||||
{
|
{
|
||||||
@@ -196,5 +185,7 @@ activate_mm (struct mm_struct *prev, struct mm_struct *next)
|
|||||||
|
|
||||||
#define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_mm)
|
#define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_mm)
|
||||||
|
|
||||||
|
#include <asm-generic/mmu_context.h>
|
||||||
|
|
||||||
# endif /* ! __ASSEMBLY__ */
|
# endif /* ! __ASSEMBLY__ */
|
||||||
#endif /* _ASM_IA64_MMU_CONTEXT_H */
|
#endif /* _ASM_IA64_MMU_CONTEXT_H */
|
||||||
|
Reference in New Issue
Block a user