diff options
Diffstat (limited to 'common/clock.c')
-rw-r--r-- | common/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/clock.c b/common/clock.c index 4069d4e83b..e22b6a5409 100644 --- a/common/clock.c +++ b/common/clock.c @@ -41,7 +41,7 @@ uint64_t get_time_ns(void) uint64_t ns_offset; /* read clocksource: */ - cycle_now = cs->read(); + cycle_now = cs->read() & cs->mask; /* calculate the delta since the last call: */ cycle_delta = (cycle_now - cs->cycle_last) & cs->mask; |