aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2025-05-07 14:29:37 +0000
committerRafael J. Wysocki <[email protected]>2025-05-09 13:59:27 +0000
commit495e7a6389c85003fc1ef4e893f0845e12fa9b95 (patch)
treeb5eedfc758e997ced76ece7818904103f7905a94 /rust/helpers/helpers.c
parentPM: runtime: Add new devm functions (diff)
downloadkernel-495e7a6389c85003fc1ef4e893f0845e12fa9b95.tar.gz
kernel-495e7a6389c85003fc1ef4e893f0845e12fa9b95.zip
PM: sysfs: Move debug runtime PM attributes to runtime_attrs[]
Some of the debug sysfs attributes for runtime PM are located in the power_attrs[] table, so they are exposed even in the pm_runtime_has_no_callbacks() case, unlike the other non-debug sysfs attributes for runtime PM, which may be confusing. Moreover, dev_attr_runtime_status.attr appears in two places, which effectively causes it to be always exposed if CONFIG_PM_ADVANCED_DEBUG is set, but otherwise it is exposed only when pm_runtime_has_no_callbacks() returns 'false'. Address this by putting all sysfs attributes for runtime PM into runtime_attrs[]. Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions