mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Peter Zijlstra](/assets/img/avatar_default.png)
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
26 lines
544 B
C
26 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 */
|