qcacmn: Add qdf_ffs API and modify ring id params
Adds qdf_ffs wrapper API for ffs(x) API. Update the ring id min and max value for 'dp_mlo_reo_rings_map' ini. Change-Id: I4ee202350dd63854fe75a20b1eab2173341b70ed CRs-Fixed: 3655539
This commit is contained in:
@@ -505,6 +505,19 @@ int __qdf_fls(uint32_t x)
|
||||
return fls(x);
|
||||
}
|
||||
|
||||
/**
|
||||
* __qdf_ffs() - find first set bit in a given 32 bit input
|
||||
* @x: 32 bit mask
|
||||
*
|
||||
* Return: zero if the input is zero, otherwise returns the bit
|
||||
* position of the first set bit, where the LSB is 1 and MSB is 32.
|
||||
*/
|
||||
static inline
|
||||
int __qdf_ffs(uint32_t x)
|
||||
{
|
||||
return ffs(x);
|
||||
}
|
||||
|
||||
/**
|
||||
* __qdf_get_smp_processor_id() - Get the current CPU id
|
||||
*
|
||||
|
Reference in New Issue
Block a user