OSDN Git Service

PM: QoS: Drop iterations over global QoS classes
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 22:59:22 +0000 (23:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Feb 2020 10:26:07 +0000 (11:26 +0100)
commit63cffc05348ea1fe65aa99e80ed330e33bf54220
treec14a4aa71c6548af3157a8bc39d598aa669a8d02
parentdcd70ca1a3bf33aa5cf53aa6f72b8e51afb1ac48
PM: QoS: Drop iterations over global QoS classes

After commit c3082a674f46 ("PM: QoS: Get rid of unused flags") the
only global PM QoS class in use is PM_QOS_CPU_DMA_LATENCY, so it
does not really make sense to iterate over global QoS classes
anywhere, since there is only one.

Remove iterations over global QoS classes from the code and use
PM_QOS_CPU_DMA_LATENCY as the target class directly where needed.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Tested-by: Amit Kucheria <amit.kucheria@linaro.org>
kernel/power/qos.c