mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
da04048d61
PD#SWPL-94401 Problem: build debugfile with module build with gki_10 Solution: build debugfile with module Verify: sc2 Signed-off-by: qinglin.li <qinglin.li@amlogic.com> Change-Id: I8db0d7e81c93860cdd2ca8cbb5526e529d67da27
34 lines
609 B
C
34 lines
609 B
C
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
#include <linux/module.h>
|
|
#include "main.h"
|
|
|
|
static int __init debug_main_init(void)
|
|
{
|
|
#ifdef CONFIG_AMLOGIC_DEBUG_LOCKUP
|
|
debug_lockup_init();
|
|
cpu_mhz_init();
|
|
#endif
|
|
#ifdef CONFIG_AMLOGIC_DEBUG_ATRACE
|
|
meson_atrace_init();
|
|
#endif
|
|
#ifdef CONFIG_AMLOGIC_DEBUG_FILE
|
|
debug_file_init();
|
|
#endif
|
|
return 0;
|
|
}
|
|
|
|
static void __exit debug_main_exit(void)
|
|
{
|
|
#ifdef CONFIG_AMLOGIC_DEBUG_FILE
|
|
debug_file_exit();
|
|
#endif
|
|
}
|
|
|
|
module_init(debug_main_init);
|
|
module_exit(debug_main_exit);
|
|
|
|
MODULE_LICENSE("GPL v2");
|