summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKamil Konieczny <k.konieczny@samsung.com>2019-12-05 15:55:25 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-24 08:38:21 +0100
commitdec6ed3d5a8a2e3a17563fc471ff320b1068814d (patch)
tree9aca72e40edf16354b81cf7abf0481e8db4edf5e /include
parenta1651f8355a611d0877a5fe5fd057d6813bf5e67 (diff)
PM / devfreq: Change time stats to 64-bit
[ Upstream commit b76b3479dab948bea0a98b6d263eb56d8f358528 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-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;