cpuidle: lpm-levels: Print enabled clocks, regulators on cpu/cluster LPM

Print enabled clocks, regulators when cpu/cluster enters
a LPM level. This debug information is useful to know
which resources are enabled and preventing cpu/cluster
entry to a LPM level.

Change-Id: Ifc69165773a401b35fb4f4ceaccab952f19f88fd
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
This commit is contained in:
Vivek Aknurwar 2020-02-21 11:34:32 -08:00
commit b1bde1a1a6

View file

@ -870,6 +870,17 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
}
if (level->notify_rpm) {
/*
* Print enabled clocks and regulators which are on during
* system suspend. This debug information is useful to know
* which resources are enabled and preventing system level
* LPMs (XO and Vmin).
*/
if (!from_idle) {
clock_debug_print_enabled();
regulator_debug_print_enabled();
}
cpu = get_next_online_cpu(from_idle);
cpumask_copy(&cpumask, cpumask_of(cpu));
clear_predict_history();