qcacmn: Add new QDF API to check if walt_get_cpus_taken supported
Add new QDF API qdf_walt_get_cpus_taken to check if walt_get_cpus_taken API is supported. Change-Id: I8ed8e5608c35c45b5e630ee39a497bca31b3502d CRs-Fixed: 3508584
This commit is contained in:

committed by
Rahul Choudhary

parent
e3e58e72e3
commit
4a4c634bb0
@@ -280,5 +280,32 @@ qdf_cpumask_complement(qdf_cpu_mask *dstp, const qdf_cpu_mask *srcp);
|
||||
* Return: Taken CPUs
|
||||
*/
|
||||
qdf_cpu_mask qdf_walt_get_cpus_taken(void);
|
||||
|
||||
/*
|
||||
* qdf_walt_get_cpus_taken_supported: walt_get_cpus_taken supported
|
||||
*
|
||||
* Return: true if walt_get_cpus_taken API is supported
|
||||
*/
|
||||
static inline bool
|
||||
qdf_walt_get_cpus_taken_supported(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
static inline
|
||||
qdf_cpu_mask qdf_walt_get_cpus_taken(void)
|
||||
{
|
||||
qdf_cpu_mask mask;
|
||||
|
||||
qdf_cpumask_clear(&mask);
|
||||
|
||||
return mask;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
qdf_walt_get_cpus_taken_supported(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#endif /* __QDF_THREADS_H */
|
||||
|
Reference in New Issue
Block a user