[PATCH 0/7] devfreq: improve devfreq statistics counting

From: Kamil Konieczny
Date: Wed Nov 13 2019 - 04:14:20 EST


Hi,

this patch series improves devfreq statistics:

- do conversion to use 64-bit jiffies for storing elapsed time and prevent counters
overflow,

- add ability to reset statistics using sysfs,

- move statistics data to separate structure for improved code
readability and maintenance,

- make devfreq statistics code more similar to cpufreq statistics
code for improved long-term maintainability

The first four patches fix time stats to use 64-bits, add spinlock for protecting data
access, add new function in sysfs for clearing statistics counters and change var name
used in time counters. Remaining patches make steps to moving stats into separate
structure devfreq_stats.

Best regards,
Kamil Konieczny
Samsung R&D Institute Poland

Kamil Konieczny (7):
devfreq: change time stats to 64-bit
devfreq: protect devfreq stats data with spinlock
devfreq: add clearing transitions stats in sysfs
devfreq: change var name used in time statistics
devfreq: move transition statistics to devfreq profile structure
devfreq: move transition statistics allocations to set_freq_stats()
devfreq: move statistics to separate struct

drivers/devfreq/devfreq.c | 199 ++++++++++++++++++-----------
drivers/devfreq/exynos-bus.c | 6 +-
drivers/devfreq/governor_passive.c | 26 ++--
include/linux/devfreq.h | 41 +++---
4 files changed, 167 insertions(+), 105 deletions(-)

--
2.24.0