From b1bde1a1a68256f2e520ad5d8cb77cb978bbb72b Mon Sep 17 00:00:00 2001 From: Vivek Aknurwar Date: Fri, 21 Feb 2020 11:34:32 -0800 Subject: [PATCH] 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 --- drivers/cpuidle/lpm-levels.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/cpuidle/lpm-levels.c b/drivers/cpuidle/lpm-levels.c index f8e1bb3a0e10..bec92af07803 100644 --- a/drivers/cpuidle/lpm-levels.c +++ b/drivers/cpuidle/lpm-levels.c @@ -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();