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

Commit b1bde1a1 authored by Vivek Aknurwar's avatar Vivek Aknurwar
Browse files

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: default avatarVivek Aknurwar <viveka@codeaurora.org>
parent 87ec7030
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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();