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: Mahesh Sivasubramanian <msivasub@codeaurora.org>
This commit is contained in:
Mahesh Sivasubramanian 2015-11-06 14:56:06 -07:00 committed by Rohit Vaswani
parent 394da4e230
commit b1060581fb

View file

@ -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;