Signed-off-by: Angus Salkeld asalkeld@redhat.com --- include/tlist.h | 2 +- lib/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/tlist.h b/include/tlist.h index e9d25c2..18b6f6e 100644 --- a/include/tlist.h +++ b/include/tlist.h @@ -32,7 +32,7 @@ typedef void *timer_handle; #define TIMER_HANDLE #endif
-static int64_t timerlist_hertz = HZ; +static int64_t timerlist_hertz;
struct timerlist { struct qb_list_head timer_head; diff --git a/lib/util.c b/lib/util.c index a044368..ef5ba25 100644 --- a/lib/util.c +++ b/lib/util.c @@ -197,7 +197,7 @@ qb_util_nano_current_get(void) uint64_t qb_util_nano_monotonic_hz(void) { - return HZ; + return sysconf(_SC_CLK_TCK); }
void