]> 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)
commitd00b22d0c8028df515ee5638784b1970a38e4677
treedb7f4741889a8adf72ce308ac7178b3a4f73319f
parentc1da0a74d7a2069f82505abc62b6e390673aeb96
ACPI: add dynamic_debug support

Commit 1393f07b0069 ("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 ea7e0319d691 ("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: ea7e0319d691 ("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