brintos

brintos / linux-shallow public Read only

0
0
Text · 1.1 KiB · bbaec80 Raw
46 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _LINUX_MMU_CONTEXT_H3#define _LINUX_MMU_CONTEXT_H4 5#include <asm/mmu_context.h>6#include <asm/mmu.h>7 8/* Architectures that care about IRQ state in switch_mm can override this. */9#ifndef switch_mm_irqs_off10# define switch_mm_irqs_off switch_mm11#endif12 13#ifndef leave_mm14static inline void leave_mm(void) { }15#endif16 17/*18 * CPUs that are capable of running user task @p. Must contain at least one19 * active CPU. It is assumed that the kernel can run on all CPUs, so calling20 * this for a kernel thread is pointless.21 *22 * By default, we assume a sane, homogeneous system.23 */24#ifndef task_cpu_possible_mask25# define task_cpu_possible_mask(p)	cpu_possible_mask26# define task_cpu_possible(cpu, p)	true27#else28# define task_cpu_possible(cpu, p)	cpumask_test_cpu((cpu), task_cpu_possible_mask(p))29#endif30 31#ifndef mm_untag_mask32static inline unsigned long mm_untag_mask(struct mm_struct *mm)33{34	return -1UL;35}36#endif37 38#ifndef arch_pgtable_dma_compat39static inline bool arch_pgtable_dma_compat(struct mm_struct *mm)40{41	return true;42}43#endif44 45#endif46