From e7e46a80e6a6ec0f0db4cb1a2c42d697c3765efa Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 5 Apr 2023 15:49:37 -0700 Subject: [PATCH] Add userspace NSEC_PER_SEC Signed-off-by: Zach Brown --- utils/src/util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/src/util.h b/utils/src/util.h index 2fafc0e9..15cc1992 100644 --- a/utils/src/util.h +++ b/utils/src/util.h @@ -70,6 +70,8 @@ do { \ #define container_of(ptr, type, memb) \ ((type *)((void *)(ptr) - offsetof(type, memb))) +#define NSEC_PER_SEC 1000000000 + #define BITS_PER_LONG (sizeof(long) * 8) #define U8_MAX ((u8)~0ULL) #define U16_MAX ((u16)~0ULL)