]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabd47789058e7fd45b7d880856ff411ccae7b8f2
treec14a4aa71c6548af3157a8bc39d598aa669a8d02
parentc06a4e0ed856ebec0ffcba6ba0ee18fa996a5b7a
PM: QoS: Drop iterations over global QoS classes

After commit f7fa70e11848 ("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