qcacmn: Add OS abstraction for NSEC_PER_MSEC
Currently code that is os-abstracted is referencing the Linux-specific macro NSEC_PER_MSEC which violates the software architecture. Introduce a new QDF macro to os-abstract this Linux-specific macro. CRs-Fixed: 2210748 Change-Id: I519773f2fd2a7227a285cf3832a758005a0f3900
Esse commit está contido em:

commit de
nshrivas

pai
e456cb8400
commit
471b552ca5
@@ -63,6 +63,7 @@ typedef struct qdf_sglist {
|
||||
} qdf_sglist_t;
|
||||
|
||||
#define QDF_MAX_SCATTER __QDF_MAX_SCATTER
|
||||
#define QDF_NSEC_PER_MSEC __QDF_NSEC_PER_MSEC
|
||||
|
||||
/**
|
||||
* QDF_SWAP_U16 - swap input u16 value
|
||||
|
@@ -129,6 +129,7 @@ typedef unsigned long __sgtable_t;
|
||||
* max sg that we support
|
||||
*/
|
||||
#define __QDF_MAX_SCATTER 1
|
||||
#define __QDF_NSEC_PER_MSEC NSEC_PER_MSEC
|
||||
|
||||
#if defined(__LITTLE_ENDIAN_BITFIELD)
|
||||
#define QDF_LITTLE_ENDIAN_MACHINE
|
||||
|
Referência em uma nova issue
Block a user