mmu_context.h 842 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef __ASM_GENERIC_MMU_CONTEXT_H
  2. #define __ASM_GENERIC_MMU_CONTEXT_H
  3. /*
  4. * Generic hooks for NOMMU architectures, which do not need to do
  5. * anything special here.
  6. */
  7. #include <asm-generic/mm_hooks.h>
  8. struct task_struct;
  9. struct mm_struct;
  10. static inline void enter_lazy_tlb(struct mm_struct *mm,
  11. struct task_struct *tsk)
  12. {
  13. }
  14. static inline int init_new_context(struct task_struct *tsk,
  15. struct mm_struct *mm)
  16. {
  17. return 0;
  18. }
  19. static inline void destroy_context(struct mm_struct *mm)
  20. {
  21. }
  22. static inline void deactivate_mm(struct task_struct *task,
  23. struct mm_struct *mm)
  24. {
  25. }
  26. static inline void switch_mm(struct mm_struct *prev,
  27. struct mm_struct *next,
  28. struct task_struct *tsk)
  29. {
  30. }
  31. static inline void activate_mm(struct mm_struct *prev_mm,
  32. struct mm_struct *next_mm)
  33. {
  34. }
  35. #endif /* __ASM_GENERIC_MMU_CONTEXT_H */