mmu_context.h 680 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  4. */
  5. #ifndef __UM_MMU_CONTEXT_H
  6. #define __UM_MMU_CONTEXT_H
  7. #include <linux/sched.h>
  8. #include <linux/mm_types.h>
  9. #include <linux/mmap_lock.h>
  10. #include <asm/mm_hooks.h>
  11. #include <asm/mmu.h>
  12. static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
  13. struct task_struct *tsk)
  14. {
  15. }
  16. #define init_new_context init_new_context
  17. extern int init_new_context(struct task_struct *task, struct mm_struct *mm);
  18. #define destroy_context destroy_context
  19. extern void destroy_context(struct mm_struct *mm);
  20. #include <asm-generic/mmu_context.h>
  21. #endif