PM / devfreq: Add clearing transitions stats
authorKamil Konieczny <k.konieczny@samsung.com>
Thu, 5 Dec 2019 14:55:26 +0000 (15:55 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 30 Dec 2019 00:59:05 +0000 (09:59 +0900)
commit14a34396819960865ff737c665c6e46b64d0e04a
treef262a702ebb8e6311d99011c2e0fb4717711672a
parentb76b3479dab948bea0a98b6d263eb56d8f358528
PM / devfreq: Add clearing transitions stats

Add clearing transition table and time in states devfreq statistics
by writing 0 (zero) to trans_stat file in devfreq sysfs. An example use
is like following:

echo 0 > /sys/class/devfreq/devfreqX/trans_stat

Signed-off-by: Kamil Konieczny <k.konieczny@samsung.com>
[cw00.choi: Edit return value if entering the wrong value for reset
 and use arrary3_size() to get the size of 3-dimensional array]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Documentation/ABI/testing/sysfs-class-devfreq
drivers/devfreq/devfreq.c