Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
cpuidle: lpm_levels: Don't print parent clocks during suspend
Browse files Browse the repository at this point in the history
Calling clock_debug_print_enabled with print_parent = true
during suspend may cause a scheduling while atomic violation.
Call with print_parent = false instead to prevent the violation.

Bug: 132511008
Change-Id: I80f646d77d0cc98b4004084022ce1dce0e80cc93
Signed-off-by: Jonglin Lee <jonglin@google.com>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
  • Loading branch information
Jonglin Lee authored and 0ctobot committed Mar 21, 2020
1 parent b8b18a2 commit ad98b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpuidle/lpm-levels.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
* LPMs(XO and Vmin).
*/
if (!from_idle)
clock_debug_print_enabled(true);
clock_debug_print_enabled(false);

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

0 comments on commit ad98b1c

Please sign in to comment.