aboutsummaryrefslogtreecommitdiff
path: root/include/hw/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/clock.h')
-rw-r--r--include/hw/clock.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/hw/clock.h b/include/hw/clock.h
index 11f67fb..5c927ce 100644
--- a/include/hw/clock.h
+++ b/include/hw/clock.h
@@ -323,10 +323,7 @@ static inline uint64_t clock_ns_to_ticks(const Clock *clk, uint64_t ns)
if (clk->period == 0) {
return 0;
}
- /*
- * Ignore divu128() return value as we've caught div-by-zero and don't
- * need different behaviour for overflow.
- */
+
divu128(&lo, &hi, clk->period);
return lo;
}