Messages in this thread |  | | From | Kamil Konieczny <> | Subject | [PATCH v2 0/3] devfreq: improve devfreq statistics counting | Date | Wed, 4 Dec 2019 16:00:15 +0100 |
| |
Hi,
this patch series tries to improve 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.
Changes in v2: - added Acked-by to first patch - dropped spinlock patch, there is mutex used for protecting stats data - rewrite clearing statistics, suggested by Chanwoo Choi: reuse trans_stats sysfs file, any write to it will clear devfreq stats - dropped change var name last_stat_updated - squashed three last patches into one, as it turned out that freq_table from devfreq_profile is used by other drivers - rebased on linux-next
Kamil Konieczny (3): devfreq: change time stats to 64-bit devfreq: add clearing transitions stats devfreq: move statistics to separate struct
drivers/devfreq/devfreq.c | 86 +++++++++++++++++++++++++++------------ include/linux/devfreq.h | 31 ++++++++++---- 2 files changed, 81 insertions(+), 36 deletions(-)
-- 2.24.0
|  |