mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
bf9282dc26
This allows moving the leave_mm() call into generic code before rcu_idle_enter(). Gets rid of more trace_*_rcuidle() users. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Marco Elver <elver@google.com> Link: https://lkml.kernel.org/r/20200821085348.369441600@infradead.org
18 lines
373 B
C
18 lines
373 B
C
/* 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
|
|
|
|
#endif
|