Ver código fonte

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 anos atrás
pai
commit
471b552ca5
2 arquivos alterados com 2 adições e 0 exclusões
  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;
 
 #define QDF_MAX_SCATTER __QDF_MAX_SCATTER
+#define QDF_NSEC_PER_MSEC __QDF_NSEC_PER_MSEC
 
 /**
  * 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
  */
 #define __QDF_MAX_SCATTER        1
+#define __QDF_NSEC_PER_MSEC NSEC_PER_MSEC
 
 #if defined(__LITTLE_ENDIAN_BITFIELD)
 #define QDF_LITTLE_ENDIAN_MACHINE