mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
qcacld-3.0: Fix pm_qos update logic
If the CPU latency requirement is not there, set the pm qos vote to default value. The target values of resume latency and active state latency tolerance are the minimum of the request values held in the parameter list elements. Change-Id: Ia5a68c024c08043da840490b6207803523f5a34a CRs-Fixed: 2554446
This commit is contained in:
parent
f560253148
commit
798fddcadc
1 changed files with 6 additions and 1 deletions
|
|
@ -8169,8 +8169,13 @@ static inline void hdd_pm_qos_update_request(struct hdd_context *hdd_ctx,
|
|||
cpumask_t *pm_qos_cpu_mask)
|
||||
{
|
||||
cpumask_copy(&hdd_ctx->pm_qos_req.cpus_affine, pm_qos_cpu_mask);
|
||||
|
||||
/* Latency value to be read from INI */
|
||||
pm_qos_update_request(&hdd_ctx->pm_qos_req, 1);
|
||||
if (cpumask_empty(pm_qos_cpu_mask))
|
||||
pm_qos_update_request(&hdd_ctx->pm_qos_req,
|
||||
PM_QOS_DEFAULT_VALUE);
|
||||
else
|
||||
pm_qos_update_request(&hdd_ctx->pm_qos_req, 1);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
|
|
|
|||
Loading…
Reference in a new issue