lkml.org 
[lkml]   [2019]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/3] devfreq: improve devfreq statistics counting
Date
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

\
 
 \ /
  Last update: 2019-12-04 16:00    [W:0.069 / U:10.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site