Skip to content

Commit 782492a

Browse files
committed
Merge tag 'acpi-5.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fix from Rafael Wysocki: "This corrects a previous attempt to make Linux use its own set of ACPI debug flags different from the upstream ACPICA's default (Erik Schmauss)" * tag 'acpi-5.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: use different default debug value than ACPICA
2 parents 8e377a1 + aa9aaa4 commit 782492a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

drivers/acpi/bus.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,6 @@ void __init acpi_early_init(void)
10431043

10441044
acpi_permanent_mmap = true;
10451045

1046-
/* Initialize debug output. Linux does not use ACPICA defaults */
1047-
acpi_dbg_level = ACPI_LV_INFO | ACPI_LV_REPAIR;
1048-
10491046
#ifdef CONFIG_X86
10501047
/*
10511048
* If the machine falls into the DMI check table,

include/acpi/acoutput.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@
150150

151151
/* Defaults for debug_level, debug and normal */
152152

153+
#ifndef ACPI_DEBUG_DEFAULT
153154
#define ACPI_DEBUG_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_EVALUATION | ACPI_LV_REPAIR)
155+
#endif
156+
154157
#define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR)
155158
#define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL)
156159

include/acpi/platform/aclinux.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
#define ACPI_NO_ERROR_MESSAGES
8383
#undef ACPI_DEBUG_OUTPUT
8484

85+
/* Use a specific bugging default separate from ACPICA */
86+
87+
#undef ACPI_DEBUG_DEFAULT
88+
#define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR)
89+
8590
/* External interface for __KERNEL__, stub is needed */
8691

8792
#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \

0 commit comments

Comments
 (0)