mmu_context.h 881 B

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