+4
−2
+2
−1
+25
−10
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
pm_qos_set_value_for_cpus expects the list in pm_qos_constraints to contain structs of type pm_qos_request. However requests from device drivers will populate the list with dev_pm_qos_request structs. pm_qos_set_value_for_cpus updates target_per_cpu array and since there is no way to access target_per_cpu for device driver requests, we can skip updating target_per_cpu for such requests. This will prevent current issue when pm_qos_set_value_for_cpus accesses dev_pm_qos_request structs as it they were pm_qos_request structs. Fixes: 723feab6 ("ANDROID: GKI: QoS: Enhance framework to support cpu/irq specific QoS requests") Bug: 183959482 Signed-off-by:Suren Baghdasaryan <surenb@google.com> Change-Id: Iaa8d349b3c1f9cd8357b2e7912b16aadef78165f