Browse Source

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
Venkata krishna Sundararajan 7 years ago
parent
commit
471b552ca5
2 changed files with 2 additions and 0 deletions
  1. 1 0
      qdf/inc/qdf_types.h
  2. 1 0
      qdf/linux/src/i_qdf_types.h

+ 1 - 0
qdf/inc/qdf_types.h

@@ -63,6 +63,7 @@ typedef struct qdf_sglist {
 } qdf_sglist_t;
 } qdf_sglist_t;
 
 
 #define QDF_MAX_SCATTER __QDF_MAX_SCATTER
 #define QDF_MAX_SCATTER __QDF_MAX_SCATTER
+#define QDF_NSEC_PER_MSEC __QDF_NSEC_PER_MSEC
 
 
 /**
 /**
  * QDF_SWAP_U16 - swap input u16 value
  * QDF_SWAP_U16 - swap input u16 value

+ 1 - 0
qdf/linux/src/i_qdf_types.h

@@ -129,6 +129,7 @@ typedef unsigned long __sgtable_t;
  * max sg that we support
  * max sg that we support
  */
  */
 #define __QDF_MAX_SCATTER        1
 #define __QDF_MAX_SCATTER        1
+#define __QDF_NSEC_PER_MSEC NSEC_PER_MSEC
 
 
 #if defined(__LITTLE_ENDIAN_BITFIELD)
 #if defined(__LITTLE_ENDIAN_BITFIELD)
 #define QDF_LITTLE_ENDIAN_MACHINE
 #define QDF_LITTLE_ENDIAN_MACHINE