hc
2024-03-22 f63cd4c03ea42695d5f9b0e1798edd196923aae6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_MMU_CONTEXT_H
#define _LINUX_MMU_CONTEXT_H
 
#include <asm/mmu_context.h>
#include <asm/mmu.h>
 
/* Architectures that care about IRQ state in switch_mm can override this. */
#ifndef switch_mm_irqs_off
# define switch_mm_irqs_off switch_mm
#endif
 
#ifndef leave_mm
static inline void leave_mm(int cpu) { }
#endif
 
/*
 * CPUs that are capable of running task @p. By default, we assume a sane,
 * homogeneous system. Must contain at least one active CPU.
 */
#ifndef task_cpu_possible_mask
# define task_cpu_possible_mask(p)    cpu_possible_mask
#endif
 
#endif