kernel-brax3-ubuntu-touch/drivers/misc/mediatek/apusys/mnoc/1.5/common/mnoc_dbg.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

33 lines
678 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 MediaTek Inc.
*/
#ifndef __APUSYS_MNOC_DBG_H__
#define __APUSYS_MNOC_DBG_H__
#if IS_ENABLED(CONFIG_MTK_AEE_FEATURE)
#include <aee.h>
#define mnoc_aee_warn(key, format, args...) \
do { \
pr_info(format, ##args); \
aee_kernel_warning("MNOC", \
"\nCRDISPATCH_KEY:" key "\n" format, ##args); \
} while (0)
#else
#define mnoc_aee_warn(key, format, args...)
#endif
#if IS_ENABLED(CONFIG_MTK_QOS_FRAMEWORK)
int create_debugfs(struct dentry *root);
void remove_debugfs(void);
#else
static inline int create_debugfs(struct dentry *root)
{
return 0;
}
static inline void remove_debugfs(void)
{
}
#endif
#endif