hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/mmu_context.h
....@@ -3,15 +3,23 @@
33 #define _LINUX_MMU_CONTEXT_H
44
55 #include <asm/mmu_context.h>
6
-
7
-struct mm_struct;
8
-
9
-void use_mm(struct mm_struct *mm);
10
-void unuse_mm(struct mm_struct *mm);
6
+#include <asm/mmu.h>
117
128 /* Architectures that care about IRQ state in switch_mm can override this. */
139 #ifndef switch_mm_irqs_off
1410 # define switch_mm_irqs_off switch_mm
1511 #endif
1612
13
+#ifndef leave_mm
14
+static inline void leave_mm(int cpu) { }
15
+#endif
16
+
17
+/*
18
+ * CPUs that are capable of running task @p. By default, we assume a sane,
19
+ * homogeneous system. Must contain at least one active CPU.
20
+ */
21
+#ifndef task_cpu_possible_mask
22
+# define task_cpu_possible_mask(p) cpu_possible_mask
23
+#endif
24
+
1725 #endif