]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: add dynamic_debug support
authorBjørn Mork <bjorn@mork.no>
Thu, 22 May 2014 10:47:47 +0000 (12:47 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 May 2014 12:38:57 +0000 (14:38 +0200)
commit4fb15901348dffdf2b33c67692e4e4b2d58b7c62
treedb7f4741889a8adf72ce308ac7178b3a4f73319f
parentf3650e1f0f71c4458845b39b10e043c92afa9547
ACPI: add dynamic_debug support

Commit f9698c59ed70 ("ACPI / hotplug / PCI: Hotplug notifications
from acpi_bus_notify()") added debug messages for a few common
events. These debug messages are unconditionally enabled if
CONFIG_DYNAMIC_DEBUG is defined, contrary to the documented
meaning, making the ACPI system spew lots of unwanted noise on
any kernel with dynamic debugging.

The bug was introduced by commit 7503bd53177d ("ACPI: Add
acpi_handle_<level>() interfaces"), which added the
CONFIG_DYNAMIC_DEBUG dependency without respecting its meaning.

Fix by adding real support for dynamic_debug.

Fixes: 7503bd53177d ("ACPI: Add acpi_handle_<level>() interfaces")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/utils.c
include/linux/acpi.h