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

Commit b252df6e authored by David Collins's avatar David Collins
Browse files

cpuidle: lpm-levels: log enabled regulators before entering suspend



Add a call to regulator_debug_print_enabled() immediately before
entering suspend.  This will print a list of all regulators that
are enabled in kernel log.

Change-Id: I532d842323fb72ef77044b5104e7b6de00748374
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 95d18be6
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
#include <linux/sched.h>
#include <linux/cpu_pm.h>
#include <linux/cpuhotplug.h>
#include <linux/regulator/machine.h>
#include <linux/sched/clock.h>
#include <linux/sched/stat.h>
#include <soc/qcom/pm.h>
@@ -1032,13 +1033,15 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,

	if (level->notify_rpm) {
		/*
		 * Print the clocks which are enabled during system suspend
		 * This debug information is useful to know which are the
		 * clocks that are enabled and preventing the system level
		 * Print the clocks and regulators which are enabled during
		 * system suspend.  This debug information is useful to know
		 * which resources are enabled and preventing the system level
		 * LPMs (XO and Vmin).
		 */
		if (!from_idle)
		if (!from_idle) {
			clock_debug_print_enabled();
			regulator_debug_print_enabled();
		}

		cpu = get_next_online_cpu(from_idle);
		cpumask_copy(&cpumask, cpumask_of(cpu));