mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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
This commit is contained in:
parent
d34e41fd41
commit
7741e86998
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue