From 1c50a00210d9b92b56d949594aefc620312fb2d8 Mon Sep 17 00:00:00 2001 From: Nisha Menon Date: Tue, 8 Sep 2020 14:07:13 -0700 Subject: [PATCH] qcacmn: Update the gold core latency on clearing cpu_mask Add qdf framework apis to clear cpu_mask and loop through cpus present and excluded in the cpu_mask. Use the apis to clear the cpu_mask and loop through cpus included in and excluded from the cpu_mask to ensure that the latency of the cores is set correctly. Change-Id: I131ef3df2ec5b1e5a1a78d39cbc5a5dedbaa2903 CRs-Fixed: 2772353 --- qdf/inc/qdf_dev.h | 3 +++ qdf/linux/src/i_qdf_dev.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/qdf/inc/qdf_dev.h b/qdf/inc/qdf_dev.h index 886742eda0..47d33d92e6 100644 --- a/qdf/inc/qdf_dev.h +++ b/qdf/inc/qdf_dev.h @@ -31,6 +31,9 @@ #define qdf_cpumask_pr_args(maskp) __qdf_cpumask_pr_args(maskp) #define qdf_for_each_possible_cpu(cpu) __qdf_for_each_possible_cpu(cpu) #define qdf_for_each_online_cpu(cpu) __qdf_for_each_online_cpu(cpu) +#define qdf_for_each_cpu(cpu, maskp) __qdf_for_each_cpu(cpu, maskp) +#define qdf_for_each_cpu_not(cpu, maskp) \ +__qdf_for_each_cpu_not(cpu, maskp) #ifdef ENHANCED_OS_ABSTRACTION /** diff --git a/qdf/linux/src/i_qdf_dev.h b/qdf/linux/src/i_qdf_dev.h index 1b519822fd..a182f74a16 100644 --- a/qdf/linux/src/i_qdf_dev.h +++ b/qdf/linux/src/i_qdf_dev.h @@ -39,6 +39,10 @@ struct qdf_dev; #define __qdf_cpumask_pr_args(maskp) cpumask_pr_args(maskp) #define __qdf_for_each_possible_cpu(cpu) for_each_possible_cpu(cpu) #define __qdf_for_each_online_cpu(cpu) for_each_online_cpu(cpu) +#define __qdf_for_each_cpu(cpu, maskp) \ +for_each_cpu(cpu, maskp) +#define __qdf_for_each_cpu_not(cpu, maskp) \ +for_each_cpu_not(cpu, maskp) /** * __qdf_dev_alloc_mem() - allocate memory