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

Commit 428b0f0c authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

qos: Add support for PM_QOS_SUM type



PM_QOS_SUM is a new enum type supported in the upstream kernel. The target
qos value for PM_QOS_SUM type is updated as the sum of all the priorities
that are applicable to the current CPU.

Change-Id: I89152db4fbbf08db113b52e6c5fee4aba9b70933
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent 3b74bf1e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -207,6 +207,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;