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

Commit dc7916f2 authored by Archana Sathyakumar's avatar Archana Sathyakumar
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()
throws an BUG as PM_QOS_SUM type is not handled. 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 4c12913d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -284,6 +284,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:
				BUG();
				break;