mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
opp: Ignore unavailable opp when show opp summary
Fixes: 37d5c1a6fd ("opp: Add a summary tree in debugfs")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I70c97957b48abe2417857f8aff5d4175d418b1e6
This commit is contained in:
@@ -254,6 +254,8 @@ static int opp_summary_show(struct seq_file *s, void *data)
|
||||
seq_printf(s, " %s\n", opp_table->dentry_name);
|
||||
mutex_lock(&opp_table->lock);
|
||||
list_for_each_entry(opp, &opp_table->opp_list, node) {
|
||||
if (!opp->available)
|
||||
continue;
|
||||
seq_printf(s, "%31lu %12lu %11lu %11lu\n",
|
||||
opp->rate,
|
||||
opp->supplies[0].u_volt,
|
||||
|
||||
Reference in New Issue
Block a user