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:
parent
394da4e230
commit
b1060581fb
1 changed files with 3 additions and 0 deletions
|
@ -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])
|
if (req->node.prio > qos_val[cpu])
|
||||||
qos_val[cpu] = req->node.prio;
|
qos_val[cpu] = req->node.prio;
|
||||||
break;
|
break;
|
||||||
|
case PM_QOS_SUM:
|
||||||
|
qos_val[cpu] += req->node.prio;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
BUG();
|
BUG();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue