/* * Copyright (C) 2019 MediaTek Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ #ifndef __APUSYS_MNOC_DBG_H__ #define __APUSYS_MNOC_DBG_H__ #include #ifdef CONFIG_MTK_AEE_FEATURE #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 int create_debugfs(void); void remove_debugfs(void); #endif