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:
Venkata krishna Sundararajan
2018-03-22 12:40:44 +05:30
commit de nshrivas
commit 471b552ca5
2 arquivos alterados com 2 adições e 0 exclusões

Ver arquivo

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

Ver arquivo

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