PM / devfreq: Add timer type to devfreq_summary debugfs
The commit4dc3bab868
("PM / devfreq: Add support delayed timer for polling mode") supports the delayed timer but this commit missed the adding the timer type to devfreq_summary debugfs node. Add the timer type to devfreq_summary debugfs. Fixes:4dc3bab868
("PM / devfreq: Add support delayed timer for polling mode") Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
parent
ba4f184e12
commit
0c309ed17c
|
@ -1766,20 +1766,23 @@ static int devfreq_summary_show(struct seq_file *s, void *data)
|
||||||
struct devfreq *p_devfreq = NULL;
|
struct devfreq *p_devfreq = NULL;
|
||||||
unsigned long cur_freq, min_freq, max_freq;
|
unsigned long cur_freq, min_freq, max_freq;
|
||||||
unsigned int polling_ms;
|
unsigned int polling_ms;
|
||||||
|
unsigned int timer;
|
||||||
|
|
||||||
seq_printf(s, "%-30s %-30s %-15s %10s %12s %12s %12s\n",
|
seq_printf(s, "%-30s %-30s %-15s %-10s %10s %12s %12s %12s\n",
|
||||||
"dev",
|
"dev",
|
||||||
"parent_dev",
|
"parent_dev",
|
||||||
"governor",
|
"governor",
|
||||||
|
"timer",
|
||||||
"polling_ms",
|
"polling_ms",
|
||||||
"cur_freq_Hz",
|
"cur_freq_Hz",
|
||||||
"min_freq_Hz",
|
"min_freq_Hz",
|
||||||
"max_freq_Hz");
|
"max_freq_Hz");
|
||||||
seq_printf(s, "%30s %30s %15s %10s %12s %12s %12s\n",
|
seq_printf(s, "%30s %30s %15s %10s %10s %12s %12s %12s\n",
|
||||||
"------------------------------",
|
"------------------------------",
|
||||||
"------------------------------",
|
"------------------------------",
|
||||||
"---------------",
|
"---------------",
|
||||||
"----------",
|
"----------",
|
||||||
|
"----------",
|
||||||
"------------",
|
"------------",
|
||||||
"------------",
|
"------------",
|
||||||
"------------");
|
"------------");
|
||||||
|
@ -1803,13 +1806,15 @@ static int devfreq_summary_show(struct seq_file *s, void *data)
|
||||||
cur_freq = devfreq->previous_freq;
|
cur_freq = devfreq->previous_freq;
|
||||||
get_freq_range(devfreq, &min_freq, &max_freq);
|
get_freq_range(devfreq, &min_freq, &max_freq);
|
||||||
polling_ms = devfreq->profile->polling_ms;
|
polling_ms = devfreq->profile->polling_ms;
|
||||||
|
timer = devfreq->profile->timer;
|
||||||
mutex_unlock(&devfreq->lock);
|
mutex_unlock(&devfreq->lock);
|
||||||
|
|
||||||
seq_printf(s,
|
seq_printf(s,
|
||||||
"%-30s %-30s %-15s %10d %12ld %12ld %12ld\n",
|
"%-30s %-30s %-15s %-10s %10d %12ld %12ld %12ld\n",
|
||||||
dev_name(&devfreq->dev),
|
dev_name(&devfreq->dev),
|
||||||
p_devfreq ? dev_name(&p_devfreq->dev) : "null",
|
p_devfreq ? dev_name(&p_devfreq->dev) : "null",
|
||||||
devfreq->governor_name,
|
devfreq->governor_name,
|
||||||
|
polling_ms ? timer_name[timer] : "null",
|
||||||
polling_ms,
|
polling_ms,
|
||||||
cur_freq,
|
cur_freq,
|
||||||
min_freq,
|
min_freq,
|
||||||
|
|
Loading…
Reference in New Issue