mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
178ba00c35
SuperH is the last remaining user of arch_ftrace_nmi_{enter,exit}(), remove it from the generic code and into the SuperH code. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Cc: Rich Felker <dalias@libc.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Link: https://lkml.kernel.org/r/20200505134101.248881738@linutronix.de
27 lines
544 B
C
27 lines
544 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_FTRACE_IRQ_H
|
|
#define _LINUX_FTRACE_IRQ_H
|
|
|
|
#ifdef CONFIG_HWLAT_TRACER
|
|
extern bool trace_hwlat_callback_enabled;
|
|
extern void trace_hwlat_callback(bool enter);
|
|
#endif
|
|
|
|
static inline void ftrace_nmi_enter(void)
|
|
{
|
|
#ifdef CONFIG_HWLAT_TRACER
|
|
if (trace_hwlat_callback_enabled)
|
|
trace_hwlat_callback(true);
|
|
#endif
|
|
}
|
|
|
|
static inline void ftrace_nmi_exit(void)
|
|
{
|
|
#ifdef CONFIG_HWLAT_TRACER
|
|
if (trace_hwlat_callback_enabled)
|
|
trace_hwlat_callback(false);
|
|
#endif
|
|
}
|
|
|
|
#endif /* _LINUX_FTRACE_IRQ_H */
|