]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PM: runtime: Documentation: ABI: Document time units for *_time
authorBrian Norris <briannorris@chromium.org>
Tue, 23 Sep 2025 22:06:26 +0000 (15:06 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Sep 2025 16:52:01 +0000 (18:52 +0200)
Many .../power/... time-related attributes have an "_ms" suffix and also
include language in their ABI description to make clear that their time
is measured in milliseconds. However, 'runtime_suspended_time' and
'runtime_active_time' have neither, and it takes me a nontrivial amount
of time to poke through the source to confirm that they are also
measured in milliseconds.

Update the doc with "millisecond" units.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Link: https://patch.msgid.link/20250923150625.1.If11a14e33d578369db48d678395d0323bdb01915@changeid
[ rjw: Subject edits, changelog tweak ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/ABI/testing/sysfs-devices-power

index e4ec5de9a5dd23f1d6dfebf0fdcabbb4bc2d07d9..9bf7c8a267c58703a8a097ada1f12271271dbe98 100644 (file)
@@ -274,15 +274,15 @@ What:             /sys/devices/.../power/runtime_active_time
 Date:          Jul 2010
 Contact:       Arjan van de Ven <arjan@linux.intel.com>
 Description:
-               Reports the total time that the device has been active.
-               Used for runtime PM statistics.
+               Reports the total time that the device has been active, in
+               milliseconds. Used for runtime PM statistics.
 
 What:          /sys/devices/.../power/runtime_suspended_time
 Date:          Jul 2010
 Contact:       Arjan van de Ven <arjan@linux.intel.com>
 Description:
-               Reports total time that the device has been suspended.
-               Used for runtime PM statistics.
+               Reports total time that the device has been suspended, in
+               milliseconds. Used for runtime PM statistics.
 
 What:          /sys/devices/.../power/runtime_usage
 Date:          Apr 2010