-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qos: Speed up pm_qos_set_value_for_cpus()
A lot of unnecessary work is done in pm_qos_set_value_for_cpus(), especially when the request being updated isn't affined to all CPUs. We can reduce the work done here significantly by only inspecting the CPUs which are affected by the updated request, and bailing out if the updated request doesn't change anything. We can make some other micro-optimizations as well knowing that this code is only for the PM_QOS_CPU_DMA_LATENCY class. Signed-off-by: Sultan Alsawaf <[email protected]>
- Loading branch information
1 parent
a348c42
commit b770bfb
Showing
1 changed file
with
34 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters