Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2d25f1e authored by Karthik Parsha's avatar Karthik Parsha
Browse files

msm: lpm-stats: Print suspend level stats for system level only



Suspend stats should be printed once for the system level. The other
cluster levels do not have a suspend level and suspend stats should not be
printed for these levels. Move the call to print suspend stats to the
overall print stats function to avoid repeated printing of suspend stats
for every cluster level.

Change-Id: I8e2874e479b7a197fc9b45a1b359093e6695a4d4
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent dbd2b72e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -180,8 +180,6 @@ static void level_stats_print_all(struct seq_file *m, struct lpm_stats *stats)
	list_for_each_entry(pos, centry, sibling) {
		level_stats_print_all(m, pos);
	}

	level_stats_print(m, &suspend_time_stats);
}

static void level_stats_reset(struct level_stats *stats)
@@ -222,6 +220,7 @@ static int lpm_stats_file_show(struct seq_file *m, void *v)
	}

	level_stats_print_all(m, stats);
	level_stats_print(m, &suspend_time_stats);

	return 0;
}