qcacmn: Avoid using smp_processor_id when preemptible
Use qdf_get_cpu() as it takes care for disabling preemption. Change-Id: I5ddbfd6f75b1659a193238858056937df36db86d CRs-Fixed: 3691399
This commit is contained in:
@@ -52,7 +52,7 @@ static inline bool dp_is_mon_mask_valid(struct dp_soc *soc,
|
|||||||
*/
|
*/
|
||||||
static inline int dp_srng_get_cpu(void)
|
static inline int dp_srng_get_cpu(void)
|
||||||
{
|
{
|
||||||
return smp_processor_id();
|
return qdf_get_cpu();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* QCA_HOST_MODE_WIFI_DISABLED */
|
#else /* QCA_HOST_MODE_WIFI_DISABLED */
|
||||||
|
Reference in New Issue
Block a user