NSEC_PER_SEC conversion is used throughout the linuxptp source code.
Introduce a common macro that can be used throughout the linuxptp codebase
for this purpose.

Signed-off-by: Rahul Rameshbabu <rrameshb...@nvidia.com>
---
 util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util.h b/util.h
index 2bbde71..1cbd9b6 100644
--- a/util.h
+++ b/util.h
@@ -33,6 +33,8 @@
 #define MAX_PRINT_BYTES 16
 #define BIN_BUF_SIZE (MAX_PRINT_BYTES * 3 + 1)
 
+#define NSEC_PER_SEC 1000000000LL
+
 /**
  * Table of human readable strings, one for each port state.
  */
-- 
2.40.1



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to