commit | 16770c743eb512f486728579a0f7a1073b09a84d | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Tue Mar 07 14:18:38 2023 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Mar 30 11:22:31 2023 -0400 |
tree | 614e671d52a971c97a5016199880679a877f1e51 | |
parent | 70f9acd9269b61b7311f9f8050d3b88832e8020f [diff] |
riscv: timer: avoid possible tick announcing overflow on boot If for any reason the timer counter didn't hold a value close enough to zero on boot then the cycle delta could overflow and the reported ticks won't be right. Those who really want the hardware uptime where this makes sense (as opposed to Zephyr's uptime) can still rely on sys_clock_cycle_get_64(). Signed-off-by: Nicolas Pitre <npitre@baylibre.com>