mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
qcom: soc_sleep_stats: Correctly read accumulated sleep length
Correct the offset to read accumulated sleep length. Change-Id: I7b05c85cb1664762781dfd6bd1917708e276f429 Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
This commit is contained in:
parent
059aa413d9
commit
bb396fa20a
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ static ssize_t stats_show(struct kobject *obj, struct kobj_attribute *attr,
|
|||
offset = offsetof(struct entry, last_exited_at);
|
||||
e->last_exited_at = le64_to_cpu(readq_relaxed(reg + offset));
|
||||
|
||||
offset = offsetof(struct entry, last_exited_at);
|
||||
offset = offsetof(struct entry, accumulated);
|
||||
e->accumulated = le64_to_cpu(readq_relaxed(reg + offset));
|
||||
|
||||
e->last_entered_at = get_time_in_sec(e->last_entered_at);
|
||||
|
|
|
|||
Loading…
Reference in a new issue