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

Commit e7904301 authored by Archana Sathyakumar's avatar Archana Sathyakumar Committed by Lina Iyer
Browse files

kernel: power: qos: Set PM_QOS_SUM type for each cpu



If a memory bandwidth constraint is added, pm_qos_set_value_for_cpu()
doesn't handle the PM_QOS_SUM type. Add the new value to the
target_per_cpu variable to provide an overall memory bandwidth
requirement for each cpu.

Change-Id: I44b2954bb799ea1f8e21de5c590ea6fa483359ac
Signed-off-by: default avatarArchana Sathyakumar <asathyak@codeaurora.org>
parent 625906a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -283,6 +283,9 @@ static inline void pm_qos_set_value_for_cpus(struct pm_qos_constraints *c)
				if (req->node.prio > qos_val[cpu])
					qos_val[cpu] = req->node.prio;
				break;
			case PM_QOS_SUM:
					qos_val[cpu] += req->node.prio;
				break;
			default:
				break;
			}