qcacld-3.0: CPU mask not set for affine cores on init

Set cpu_mask for affine cores on init before sending a
request to PM QoS interface to insert a element into the
list for DMA latency in the QoS framework.

Change-Id: I81f17077c6ddce69c99047c46cef008b6b195d77
CRs-Fixed: 2551349
This commit is contained in:
Nisha Menon 2019-10-28 16:24:21 -07:00 committed by nshrivas
parent c333dda001
commit 33030f8cd0

View File

@ -8183,6 +8183,8 @@ static inline void hdd_pm_qos_update_request(struct hdd_context *hdd_ctx,
static inline void hdd_update_pm_qos_affine_cores(struct hdd_context *hdd_ctx)
{
hdd_ctx->pm_qos_req.type = PM_QOS_REQ_AFFINE_CORES;
qdf_cpumask_clear(&hdd_ctx->pm_qos_req.cpus_affine);
hdd_pm_qos_update_cpu_mask(&hdd_ctx->pm_qos_req.cpus_affine, false);
}
#else
static inline void hdd_update_pm_qos_affine_cores(struct hdd_context *hdd_ctx)
@ -8194,6 +8196,8 @@ static inline void hdd_pm_qos_add_request(struct hdd_context *hdd_ctx)
hdd_update_pm_qos_affine_cores(hdd_ctx);
pm_qos_add_request(&hdd_ctx->pm_qos_req, PM_QOS_CPU_DMA_LATENCY,
PM_QOS_DEFAULT_VALUE);
hdd_info("Set cpu_mask %*pb for affine_cores",
cpumask_pr_args(&hdd_ctx->pm_qos_req.cpus_affine));
}
static inline void hdd_pm_qos_remove_request(struct hdd_context *hdd_ctx)