diff options
author | Vincent Guittot <[email protected]> | 2019-02-04 17:25:53 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2019-02-05 12:04:39 +0100 |
commit | fed7e88c0702e30fcd55563ca6eecd548a5d13af (patch) | |
tree | fdf48e512e455ef7655c3632879befb400768f0c /lib/memory-notifier-error-inject.c | |
parent | c155f6499f9797f200aa46eb3ccbf198f4206970 (diff) |
PM-runtime: update time accounting only when enabled
Update the accounting_timestamp field only when PM runtime is enabled
and don't forget to account the last state before disabling it.
Suggested-by: Ulf Hansson <[email protected]>
Signed-off-by: Vincent Guittot <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
[ rjw: Minor cleanups ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions