summaryrefslogtreecommitdiff
path: root/include/linux/devfreq.h
diff options
context:
space:
mode:
authorKamil Konieczny <k.konieczny@samsung.com>2019-12-05 17:55:25 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2019-12-30 03:59:05 +0300
commitb76b3479dab948bea0a98b6d263eb56d8f358528 (patch)
tree1776d78541d68b422b967741caace16ba7f20243 /include/linux/devfreq.h
parent2fee1a7cc6b1ce6634bb0f025be2c94a58dfa34d (diff)
downloadlinux-b76b3479dab948bea0a98b6d263eb56d8f358528.tar.xz
PM / devfreq: Change time stats to 64-bit
Change time stats counting to bigger type by using 64-bit jiffies. This will make devfreq stats code look similar to cpufreq stats and prevents overflow (for HZ = 1000 after 49.7 days). Signed-off-by: Kamil Konieczny <k.konieczny@samsung.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r--include/linux/devfreq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h
index fb376b5b7281..95816a8e3d26 100644
--- a/include/linux/devfreq.h
+++ b/include/linux/devfreq.h
@@ -177,8 +177,8 @@ struct devfreq {
/* information for device frequency transition */
unsigned int total_trans;
unsigned int *trans_table;
- unsigned long *time_in_state;
- unsigned long last_stat_updated;
+ u64 *time_in_state;
+ u64 last_stat_updated;
struct srcu_notifier_head transition_notifier_list;