Skip to content

Commit

Permalink
ACPI: Set debug output flags independent of ACPICA
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reported-by: Alex Gagniuc <[email protected]>
Signed-off-by: Erik Schmauss <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Erik Schmauss authored and rafaeljw committed Feb 7, 2019
1 parent 8834f56 commit ce5cbf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,9 @@ void __init acpi_early_init(void)

acpi_permanent_mmap = true;

/* Initialize debug output. Linux does not use ACPICA defaults */
acpi_dbg_level = ACPI_LV_INFO | ACPI_LV_REPAIR;

#ifdef CONFIG_X86
/*
* If the machine falls into the DMI check table,
Expand Down

0 comments on commit ce5cbf5

Please sign in to comment.