mbox series

[v2,0/3] devfreq: improve devfreq statistics counting

Message ID 20191204150018.5234-1-k.konieczny@samsung.com (mailing list archive)
Headers show
Series devfreq: improve devfreq statistics counting | expand

Message

Kamil Konieczny Dec. 4, 2019, 3 p.m. UTC
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(-)