qcacmn: Create new qdf_in_atomic interface to wrap the kernel API

Create the new qdf_in_atomic to wrap the kernel API in_atomic to be
used in the driver to check whether current running thread is in atomic
context.

Change-Id: I69843ff79559612561d57965a6754990e9b6f4f9
CRs-Fixed: 3414725
This commit is contained in:
Tiger Yu
2023-02-23 12:00:06 +08:00
committed by Madan Koyyalamudi
orang tua 8dd3d7f449
melakukan 60bdb7983d
2 mengubah file dengan 28 tambahan dan 0 penghapusan

Melihat File

@@ -921,4 +921,15 @@ static inline int qdf_get_smp_processor_id(void)
{
return __qdf_get_smp_processor_id();
}
/**
* qdf_in_atomic: Check whether current thread running in atomic context
*
* Return: true if current thread is running in the atomic context
* else it will be return false.
*/
static inline bool qdf_in_atomic(void)
{
return __qdf_in_atomic();
}
#endif /*_QDF_UTIL_H*/