diff options
| author | Ulf Hansson <[email protected]> | 2019-03-05 12:55:35 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2019-03-07 10:23:17 +0000 |
| commit | 0996584b3026bed7f38abe02e8535e6a6c474118 (patch) | |
| tree | 9fe33cd0609fab1a83532fd1e6c559b79d4fea8d /drivers/fpga/fpga-mgr.c | |
| parent | PM-runtime: Consolidate code to get active/suspended time (diff) | |
| download | kernel-0996584b3026bed7f38abe02e8535e6a6c474118.tar.gz kernel-0996584b3026bed7f38abe02e8535e6a6c474118.zip | |
PM-runtime: Call pm_runtime_active|suspended_time() from sysfs
Avoid the open-coding of the accounted time acquisition in
runtime_active|suspend_time_show() and make them call
pm_runtime_active|suspended_time() instead.
Note that this change also indirectly avoids holding dev->power.lock
around the do_div() computation and the sprintf() call which is an
additional improvement.
Signed-off-by: Ulf Hansson <[email protected]>
[ rjw: Changelog ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
