diff options
author | Saket Jha <sakejha@codeaurora.org> | 2019-07-09 15:21:25 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-07-30 16:17:47 -0700 |
commit | a72944b02736c69ccf1b9280bfe8517c0d5122d1 (patch) | |
tree | d9dc8717f04ec28964c81062b1e5679a326a46a4 /core/cds | |
parent | 7b11a3fc0f0acb526004cd010b685942b6a42d78 (diff) | |
download | qcacld-a72944b02736c69ccf1b9280bfe8517c0d5122d1.tar.gz |
qcacld-3.0: Implement QDF API for cpumask
In cds_sched_find_attach_cpu function, change calls to functions
cpumask_clear, cpumask_set_cpu, and cpumask_setall to instead use the
QDF abstraction of these functions qdf_cpumask_clear,
qdf_cpumask_set_cpu, and qdf_cpumask_setall.
Change-Id: Ibd62e4d0f38ad3b8f2483e6cf40d56fcb70cba10
CRs-Fixed: 2486827
Diffstat (limited to 'core/cds')
-rw-r--r-- | core/cds/src/cds_sched.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/cds/src/cds_sched.c b/core/cds/src/cds_sched.c index d86c0bd195..69e3c080b5 100644 --- a/core/cds/src/cds_sched.c +++ b/core/cds/src/cds_sched.c @@ -155,7 +155,7 @@ static int cds_sched_find_attach_cpu(p_cds_sched_context pSchedContext, cds_debug("num possible cpu %d", num_possible_cpus()); - cpumask_clear(&new_mask); + qdf_cpumask_clear(&new_mask); if (high_throughput) { /* Get Online perf/pwr CPU count */ @@ -170,17 +170,17 @@ static int cds_sched_find_attach_cpu(p_cds_sched_context pSchedContext, if (pSchedContext->conf_rx_thread_cpu_mask) { if (pSchedContext->conf_rx_thread_cpu_mask & (1 << cpus)) - cpumask_set_cpu(cpus, &new_mask); + qdf_cpumask_set_cpu(cpus, &new_mask); } else if (topology_physical_package_id(cpus) == CDS_CPU_CLUSTER_TYPE_PERF) { - cpumask_set_cpu(cpus, &new_mask); + qdf_cpumask_set_cpu(cpus, &new_mask); } core_affine_count++; } } else { /* Attach to all cores, let scheduler decide */ - cpumask_setall(&new_mask); + qdf_cpumask_setall(&new_mask); } cds_rx_thread_log_cpu_affinity_change(core_affine_count, |