@@ -479,6 +479,12 @@ config ACPI_REDUCED_HARDWARE_ONLY
If you are unsure what to do, do not enable this option.
+config ACPI_KERN_DEBUG
+ bool "Acpi kernel debugging"
+ help
+ This is an option for use by developers, most people should
+ say N here. This enables ACPI driver KERN_DEBUG.
+
source "drivers/acpi/nfit/Kconfig"
source "drivers/acpi/numa/Kconfig"
source "drivers/acpi/apei/Kconfig"
@@ -4,6 +4,7 @@
#
ccflags-$(CONFIG_ACPI_DEBUG) += -DACPI_DEBUG_OUTPUT
+ccflags-$(CONFIG_ACPI_KERN_DEBUG) := -DDEBUG
#
# ACPI Boot-Time Table Parsing
In the API module, there is no unified configuration switch to control debug output, and the current approach is to enable debugging by adding "define DEBUG" in the file, which is both cumbersome and difficult to manage. a global debug config to control the debug output of the ACPI module will be more easily and clearly. Signed-off-by: Xiong Yining <xiongyining1480@phytium.com.cn> --- drivers/acpi/Kconfig | 6 ++++++ drivers/acpi/Makefile | 1 + 2 files changed, 7 insertions(+)