From 471b552ca5c7e9122010591bf48241cb7986078e Mon Sep 17 00:00:00 2001 From: Venkata krishna Sundararajan Date: Thu, 22 Mar 2018 12:40:44 +0530 Subject: [PATCH] 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 --- qdf/inc/qdf_types.h | 1 + qdf/linux/src/i_qdf_types.h | 1 + 2 files changed, 2 insertions(+) diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h index 9c2e47ebd0..a302f83123 100644 --- a/qdf/inc/qdf_types.h +++ b/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 diff --git a/qdf/linux/src/i_qdf_types.h b/qdf/linux/src/i_qdf_types.h index 5cf247e9c9..f3c69ffdde 100644 --- a/qdf/linux/src/i_qdf_types.h +++ b/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