Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: add driver component definitions to sysfs debug_layers

/sys/module/acpi/parameters/debug_layers used to contain only the
debug layers defined by the ACPI CA. This patch adds the additional
layer definitions for ACPI drivers.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Bjorn Helgaas and committed by
Len Brown
bdd72799 44342f9e

+19
+15
drivers/acpi/debug.c
··· 44 44 ACPI_DEBUG_INIT(ACPI_CA_DISASSEMBLER), 45 45 ACPI_DEBUG_INIT(ACPI_COMPILER), 46 46 ACPI_DEBUG_INIT(ACPI_TOOLS), 47 + 48 + ACPI_DEBUG_INIT(ACPI_BUS_COMPONENT), 49 + ACPI_DEBUG_INIT(ACPI_AC_COMPONENT), 50 + ACPI_DEBUG_INIT(ACPI_BATTERY_COMPONENT), 51 + ACPI_DEBUG_INIT(ACPI_BUTTON_COMPONENT), 52 + ACPI_DEBUG_INIT(ACPI_SBS_COMPONENT), 53 + ACPI_DEBUG_INIT(ACPI_FAN_COMPONENT), 54 + ACPI_DEBUG_INIT(ACPI_PCI_COMPONENT), 55 + ACPI_DEBUG_INIT(ACPI_POWER_COMPONENT), 56 + ACPI_DEBUG_INIT(ACPI_CONTAINER_COMPONENT), 57 + ACPI_DEBUG_INIT(ACPI_SYSTEM_COMPONENT), 58 + ACPI_DEBUG_INIT(ACPI_THERMAL_COMPONENT), 59 + ACPI_DEBUG_INIT(ACPI_MEMORY_DEVICE_COMPONENT), 60 + ACPI_DEBUG_INIT(ACPI_VIDEO_COMPONENT), 61 + ACPI_DEBUG_INIT(ACPI_PROCESSOR_COMPONENT), 47 62 }; 48 63 49 64 static const struct acpi_dlevel acpi_debug_levels[] = {
+4
include/acpi/acpi_drivers.h
··· 31 31 32 32 #define ACPI_MAX_STRING 80 33 33 34 + /* 35 + * Please update drivers/acpi/debug.c and Documentation/acpi/debug.txt 36 + * if you add to this list. 37 + */ 34 38 #define ACPI_BUS_COMPONENT 0x00010000 35 39 #define ACPI_AC_COMPONENT 0x00020000 36 40 #define ACPI_BATTERY_COMPONENT 0x00040000