summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSourav Mohapatra <mohapatr@codeaurora.org>2018-06-11 14:41:51 +0530
committernshrivas <nshrivas@codeaurora.org>2018-06-14 01:47:16 -0700
commit842f44537b5076be9607beeebdfd2e1243d36503 (patch)
treeef2165d8b22089ce0079e6de0832b0f352ead61d
parentf6e30a47049d79eeaf57157411788c89238dcd20 (diff)
qcacld-3.0: Update correct value for low power stats
In the present scenario the value that is being assigned to the effective total on time is incorrect. The cumulative_total_on_time_ms is being assigned which does not take into account the sleep time Subtract the sleep time from the on time to reflect the correct on time qcacld-2.0 -> qcacld-3.0 propagation Change-Id: I8a9738b1a9592ca182fb93e503a49d6ca336154d CRs-Fixed: 2192936
-rw-r--r--core/hdd/src/wlan_hdd_debugfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_debugfs.c b/core/hdd/src/wlan_hdd_debugfs.c
index c757a6be00c0..6ee6020e7644 100644
--- a/core/hdd/src/wlan_hdd_debugfs.c
+++ b/core/hdd/src/wlan_hdd_debugfs.c
@@ -593,7 +593,8 @@ static void hdd_power_debugstats_cb(struct power_stats_response *response,
power_stats->cumulative_sleep_time_ms
= response->cumulative_sleep_time_ms;
power_stats->cumulative_total_on_time_ms
- = response->cumulative_total_on_time_ms;
+ = response->cumulative_total_on_time_ms -
+ response->cumulative_sleep_time_ms;
power_stats->deep_sleep_enter_counter
= response->deep_sleep_enter_counter;
power_stats->last_deep_sleep_enter_tstamp_ms