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

Commit 70a63c48 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: thermal: use cluster frequency to request lmh dcvs from KTM"

parents b3b1b701 12960623
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1057,6 +1057,16 @@ static int msm_lmh_dcvs_update(int cpu)
	uint32_t affinity;
	int ret;

	/*
	 * It is better to use max/min limits of cluster for given
	 * cpu if cluster mitigation is supported. It ensures that it
	 * requests aggregated max/min limits of all cpus in that cluster.
	 */
	if (core_ptr) {
		max_freq = cpus[cpu].parent_ptr->limited_max_freq;
		min_freq = cpus[cpu].parent_ptr->limited_min_freq;
	}

	switch (id) {
	case 0:
		affinity = MSM_LIMITS_CLUSTER_0;