ACPI: remove "config ACPI_DEBUG_FUNC_TRACE"
PATCH 1/1 ACPI: remove "config ACPI_DEBUG_FUNC_TRACE"
Kconfig symbol ACPI_DEBUG_FUNC_TRACE was only used (through its corresponding macro) in drivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit 86ff0e508f88eda6e479a897476026055831d2d8 ("ACPICA: Fix unmerged acmacros.h divergences."). That commit did not explain why that macro was removed. But it seems that ACPI_DEBUG_FUNC_TRACE can now be removed too, as it is unused.
---
Eyeball tested.
drivers/acpi/Kconfig | 8 -------- 1 file changed, 8 deletions(-)
drivers/acpi/Kconfig +0 -8
@@ -298,14 +298,6 @@ config ACPI_DEBUG Documentation/kernel-parameters.txt to control the type and amount of debug output. -config ACPI_DEBUG_FUNC_TRACE - bool "Additionally enable ACPI function tracing" - default n - depends on ACPI_DEBUG - help - ACPI Debug Statements slow down ACPI processing. Function trace - is about half of the penalty and is rarely useful. - config ACPI_PCI_SLOT bool "PCI slot detection driver" depends on SYSFS
Signature · 1 line
1.7.11.7
Quoted 7 lines · Paul Bolle
KconfigsymbolACPI_DEBUG_FUNC_TRACEwas only used (through its corresponding macro) indrivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit86ff0e508f88eda6e479a897476026055831d2d8("ACPICA: Fix unmergedacmacros.hdivergences."). That commit did not explain why that macro was removed. But it seems thatACPI_DEBUG_FUNC_TRACEcan now be removed too, as it is unused.
Lv, can you please comment here?
Rafael
Quoted 27 lines
Signed-off-by Paul Bolle <[email protected]>---
Eyeball tested.drivers/acpi/Kconfig | 8 -------- 1 file changed, 8 deletions(-)drivers/acpi/Kconfig +0
-8@@ -298,14 +298,6 @@ config ACPI_DEBUG Documentation/kernel-parameters.txt to control the type and amount of debug output. -config ACPI_DEBUG_FUNC_TRACE - bool "Additionally enable ACPI function tracing" - default n - depends on ACPI_DEBUG - help - ACPI Debug Statements slow down ACPI processing. Function trace - is about half of the penalty and is rarely useful. - config ACPI_PCI_SLOT bool "PCI slot detection driver" depends on SYSFS
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Quoted 10 lines · Rafael J. Wysocki
Quoted 7 lines · Paul Bolle
KconfigsymbolACPI_DEBUG_FUNC_TRACEwas only used (through its corresponding macro) indrivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit86ff0e508f88eda6e479a897476026055831d2d8("ACPICA: Fix unmergedacmacros.hdivergences."). That commit did not explain why that macro was removed. But it seems thatACPI_DEBUG_FUNC_TRACEcan now be removed too, as it is unused.Lv, can you please comment here?
Lv, I'm still waiting for your comment regarding the commit mentioned above.
Thanks,
Rafael
Quoted 28 lines
Quoted 27 lines
Signed-off-by Paul Bolle <[email protected]>---
Eyeball tested.drivers/acpi/Kconfig | 8 -------- 1 file changed, 8 deletions(-)drivers/acpi/Kconfig +0
-8@@ -298,14 +298,6 @@ config ACPI_DEBUG Documentation/kernel-parameters.txt to control the type and amount of debug output. -config ACPI_DEBUG_FUNC_TRACE - bool "Additionally enable ACPI function tracing" - default n - depends on ACPI_DEBUG - help - ACPI Debug Statements slow down ACPI processing. Function trace - is about half of the penalty and is rarely useful. - config ACPI_PCI_SLOT bool "PCI slot detection driver" depends on SYSFS
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Quoted 9 lines
Quoted 7 lines
KconfigsymbolACPI_DEBUG_FUNC_TRACEwas only used (through its corresponding macro) indrivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit86ff0e508f88eda6e479a897476026055831d2d8("ACPICA: Fix unmergedacmacros.hdivergences."). That commit did not explain why that macro was removed. But it seems thatACPI_DEBUG_FUNC_TRACEcan now be removed too, as it is unused.Lv, can you please comment here?
Sorry for the delayed reply.
The commit should have done something that already have been done in the ACPICA. I'll take a look at this.
Thanks and best regards
-Lv
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
KconfigsymbolACPI_DEBUG_FUNC_TRACEwas only used (through its corresponding macro) indrivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit86ff0e508f88eda6e479a897476026055831d2d8("ACPICA: Fix unmergedacmacros.hdivergences."). That commit did not explain why that macro was removed. But it seems thatACPI_DEBUG_FUNC_TRACEcannow
Quoted 2 lines
Quoted 1 line
be removed too, as it is unused.
Quoted 7 lines
Quoted 1 line
Lv, can you please comment here?
Sorry for the delayed reply.
The commit should have done something that already have been done in the ACPICA.
I'll take a look at this.
The original commit deleted CONFIG_ACPI_DEBUG_FUNC_TRACE from acmacros.h as it is in the __wrong__ place.CONFIG_xxx is linux specific codes thus should appear in OSL layer - aclinux.h.
ACPICA specific codes should only use selective definitions in #ifdef ACPI_xxx style and such codes should be merged into ACPICA rather than being merged into Linux ACPI.
Now we have two choices:
Re-implement it in the aclinux.h using "ACPI_DEBUG_OUTPUT" defined/undefined or delete this kernel configuration item temporarily.
Thanks and best regards
-Lv
Quoted 24 lines
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
KconfigsymbolACPI_DEBUG_FUNC_TRACEwas only used (through its corresponding macro) indrivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit86ff0e508f88eda6e479a897476026055831d2d8("ACPICA: Fix unmergedacmacros.hdivergences."). That commit did not explain why that macro was removed. But it seems thatACPI_DEBUG_FUNC_TRACEcannow
Quoted 2 lines
Quoted 1 line
be removed too, as it is unused.
Quoted 7 lines
Quoted 1 line
Lv, can you please comment here?
Sorry for the delayed reply.
The commit should have done something that already have been done in the ACPICA.
I'll take a look at this.The original commit deleted
CONFIG_ACPI_DEBUG_FUNC_TRACEfromacmacros.has it is in the__wrong__place.CONFIG_xxxis linux specific codes thus should appear in OSL layer -aclinux.h. ACPICA specific codes should only use selective definitions in #ifdefACPI_xxxstyle and such codes should be merged into ACPICA rather than being merged into Linux ACPI.
Quoted 3 lines
Now we have two choices:
Re-implement it in theaclinux.husing "ACPI_DEBUG_OUTPUT" defined/undefined or delete this kernel configuration item temporarily.
Sorry, I made a mistake here.ACPI_DEBUG_OUTPUT is already covered by the CONFIG_ACPI_DEBUG.
The corrected statement should be:
If we want to fine tune the output, then the codes might be implemented in ACPICA first and then get utilized in Linux using the new ACPICA feature.
Best regards
-Lv
Quoted 17 lines · Lv
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
KconfigsymbolACPI_DEBUG_FUNC_TRACEwas only used (through its corresponding macro) indrivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit86ff0e508f88eda6e479a897476026055831d2d8("ACPICA: Fix unmergedacmacros.hdivergences."). That commit did not explain why that macro was removed. But it seems thatACPI_DEBUG_FUNC_TRACEcannow
Quoted 2 lines
Quoted 1 line
be removed too, as it is unused.
Quoted 7 lines
Quoted 1 line
Lv, can you please comment here?
Sorry for the delayed reply.
The commit should have done something that already have been done in the ACPICA.
I'll take a look at this.
Quoted 7 lines
The original commit deleted
CONFIG_ACPI_DEBUG_FUNC_TRACEfromacmacros.has it is in the__wrong__place.CONFIG_xxxis linux specific codes thus should appear in OSL layer -aclinux.h.
ACPICA specific codes should only use selective definitions in #ifdefACPI_xxxstyle and such codes should be merged into ACPICA rather than being merged into Linux ACPI.Now we have two choices:
Re-implement it in theaclinux.husing "ACPI_DEBUG_OUTPUT" defined/undefined or delete this kernel configuration item temporarily.
OK
I'll apply the Paul's patch then and we'll decide what to do with that config option later.
Thanks,
Rafael
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.