.. | .. |
---|
3 | 3 | #define _LINUX_MMU_CONTEXT_H |
---|
4 | 4 | |
---|
5 | 5 | #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> |
---|
11 | 7 | |
---|
12 | 8 | /* Architectures that care about IRQ state in switch_mm can override this. */ |
---|
13 | 9 | #ifndef switch_mm_irqs_off |
---|
14 | 10 | # define switch_mm_irqs_off switch_mm |
---|
15 | 11 | #endif |
---|
16 | 12 | |
---|
| 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 | + |
---|
17 | 25 | #endif |
---|