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:
Aman Mehta
2023-10-31 17:55:12 +05:30
committed by Ravindra Konda
父節點 a7fe389b77
當前提交 1dd27488f1
共有 2 個文件被更改,包括 27 次插入0 次删除

查看文件

@@ -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
*