OSDN Git Service

PM / devfreq: Move statistics to separate struct devfreq_stats
authorKamil Konieczny <k.konieczny@samsung.com>
Fri, 6 Dec 2019 04:46:39 +0000 (13:46 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 30 Dec 2019 00:59:05 +0000 (09:59 +0900)
commit1ebd0bc0e8adbfa548335d016ead922cc85fcecd
tree486156c8cecd6a122158753788a7b9da76c0aee9
parent14a34396819960865ff737c665c6e46b64d0e04a
PM / devfreq: Move statistics to separate struct devfreq_stats

Count time and transitions between devfreq frequencies in separate
struct devfreq_stats for improved code readability and maintenance.

Signed-off-by: Kamil Konieczny <k.konieczny@samsung.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
[cw00.choi: Fix the merge conflict in trasn_stat_store
 and use 'devfreq->stats.*' style for consistent coding style
 and restore the clean-up code of 'devfreq->profile->*']
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h