PM / devfreq: Do not show statistics if it's not ready.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 23 Nov 2015 06:45:36 +0000 (15:45 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 13 Jan 2016 08:30:33 +0000 (17:30 +0900)
commit34bd322070a41898b032f59a0dfd345627fc1e7e
treecb4d133152595cfff435ff193dee183497f387b8
parentd7df1e464749650056f511e75b3d4e53cfac5d53
PM / devfreq: Do not show statistics if it's not ready.

Before this patch for a device without statistics support,

$ cat trans_stat
    From  :   To
          :   time(ms)
Total transitions : 0
$

After this patch applied for such a device,

$ cat trans_stat
Not Supported.
$

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c