blob: 03dee12d2b61ce3548ec041e1197caba175df8a3 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_MMU_CONTEXT_H
3#define _LINUX_MMU_CONTEXT_H
4
5#include <asm/mmu_context.h>
Olivier Deprez157378f2022-04-04 15:47:50 +02006#include <asm/mmu.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007
8/* Architectures that care about IRQ state in switch_mm can override this. */
9#ifndef switch_mm_irqs_off
10# define switch_mm_irqs_off switch_mm
11#endif
12
Olivier Deprez157378f2022-04-04 15:47:50 +020013#ifndef leave_mm
14static inline void leave_mm(int cpu) { }
15#endif
16
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000017#endif