Skip to content

Commit ce5cbf5

Browse files
Erik Schmaussrafaeljw
authored andcommitted
ACPI: Set debug output flags independent of ACPICA
There was a divergence between Linux and ACPICA on the definition of ACPI_DEBUG_DEFAULT. This divergence was solved by taking ACPICA's definition in 4c1379d. After resolving the divergence, it was clear that Linux users wanted to use their old set of debug flags. This change fixes the divergence by setting these debug flags during acpi_early_init() rather than during global variable initialization in acpixf.h (owned by ACPICA). Fixes: 4c1379d ("ACPICA: Debug output: Add option to display method/object evaluation") Reported-by: Michael J Ruhl <michael.j.ruhl@intel.com> Reported-by: Alex Gagniuc <Alex_Gagniuc@Dellteam.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 8834f56 commit ce5cbf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/acpi/bus.c

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

10301030
acpi_permanent_mmap = true;
10311031

1032+
/* Initialize debug output. Linux does not use ACPICA defaults */
1033+
acpi_dbg_level = ACPI_LV_INFO | ACPI_LV_REPAIR;
1034+
10321035
#ifdef CONFIG_X86
10331036
/*
10341037
* If the machine falls into the DMI check table,

0 commit comments

Comments
 (0)