Attention is currently required from: Yidi Lin.
2 comments:
Commit Message:
Patch Set #11, Line 11: USECS_PER_SEC and hz can be reduced by dividing them by their GCD.
Assuming their GCD is big enough?
Patch Set #11, Line 15: counter should never be that fast.
On Intel it can be that fast (it's usually the processor base
frequency).
I've been thinking about alternative implementations that avoid
the overflow. Using update_clock() would be easiest. It seems
specifically implemented to avoid overflows.
Alternatively, as it seems timer_us() is never used in a context where
we need us precision, maybe it could be rounded down or we could even
replace it with a ms version.
To view, visit change 78888. To unsubscribe, or for help writing mail filters, visit settings.