mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
qcacmn: Define QDF API for cpumask abstraction
Defines QDF APIs for abstraction of cpumask_clear, cpumask_set_cpu, and cpumask_setall. Change-Id: I1678c600c7043b1d4a19e0479ceab9af0ce83d01 CRs-Fixed: 2478893
This commit is contained in:
parent
0b37b4ca1d
commit
316c0fdb45
2 changed files with 46 additions and 0 deletions
|
|
@ -143,4 +143,29 @@ const char *qdf_get_current_comm(void);
|
|||
*/
|
||||
void
|
||||
qdf_thread_set_cpus_allowed_mask(qdf_thread_t *thread, qdf_cpu_mask *new_mask);
|
||||
|
||||
/**
|
||||
* qdf_cpumask_clear() - clear all cpus in a cpumask
|
||||
* @dstp: cpumask pointer
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void qdf_cpumask_clear(qdf_cpu_mask *dstp);
|
||||
|
||||
/**
|
||||
* qdf_cpumask_set_cpu() - set a cpu in a cpumask
|
||||
* @cpu: cpu number
|
||||
* @dstp: cpumask pointer
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void qdf_cpumask_set_cpu(unsigned int cpu, qdf_cpu_mask *dstp);
|
||||
|
||||
/**
|
||||
* qdf_cpumask_setall - set all cpus
|
||||
* @dstp: cpumask pointer
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void qdf_cpumask_setall(qdf_cpu_mask *dstp);
|
||||
#endif /* __QDF_THREADS_H */
|
||||
|
|
|
|||
|
|
@ -236,3 +236,24 @@ qdf_thread_set_cpus_allowed_mask(qdf_thread_t *thread, qdf_cpu_mask *new_mask)
|
|||
}
|
||||
|
||||
qdf_export_symbol(qdf_thread_set_cpus_allowed_mask);
|
||||
|
||||
void qdf_cpumask_clear(qdf_cpu_mask *dstp)
|
||||
{
|
||||
cpumask_clear(dstp);
|
||||
}
|
||||
|
||||
qdf_export_symbol(qdf_cpumask_clear);
|
||||
|
||||
void qdf_cpumask_set_cpu(unsigned int cpu, qdf_cpu_mask *dstp)
|
||||
{
|
||||
cpumask_set_cpu(cpu, dstp);
|
||||
}
|
||||
|
||||
qdf_export_symbol(qdf_cpumask_set_cpu);
|
||||
|
||||
void qdf_cpumask_setall(qdf_cpu_mask *dstp)
|
||||
{
|
||||
cpumask_setall(dstp);
|
||||
}
|
||||
|
||||
qdf_export_symbol(qdf_cpumask_setall);
|
||||
|
|
|
|||
Loading…
Reference in a new issue