commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
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 */
|