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

PM / Domains: Always enable debugfs support if available

Debugfs support for PM domains is only enabled if both CONFIG_PM_DEBUG
and CONFIG_PM_ADVANCED_DEBUG are enabled. CONFIG_PM_ADVANCED_DEBUG is
described as "extra PM attributes in sysfs for low-level
debugging/testing" which does not seem related.

Given that the debugfs for PM domains only allows users to view the
state of the PM domains, always enable debugfs support for PM domains
if PM domains and debugfs support is enabled.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Jon Hunter and committed by
Rafael J. Wysocki
8b0510b5 29b4817d

+2 -2
+2 -2
drivers/base/power/domain.c
··· 1636 1636 1637 1637 /*** debugfs support ***/ 1638 1638 1639 - #ifdef CONFIG_PM_ADVANCED_DEBUG 1639 + #ifdef CONFIG_DEBUG_FS 1640 1640 #include <linux/pm.h> 1641 1641 #include <linux/device.h> 1642 1642 #include <linux/debugfs.h> ··· 1784 1784 debugfs_remove_recursive(pm_genpd_debugfs_dir); 1785 1785 } 1786 1786 __exitcall(pm_genpd_debug_exit); 1787 - #endif /* CONFIG_PM_ADVANCED_DEBUG */ 1787 + #endif /* CONFIG_DEBUG_FS */