commit | 229f4693f71538d0264e0b849e5fe1f15b44c44c | [log] [tgz] |
---|---|---|
author | Chanho Park <chanho61.park@samsung.com> | Wed Sep 06 14:18:14 2023 +0900 |
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | Wed Oct 04 17:55:37 2023 +0800 |
tree | 72acc3a568e5ca0c3a3bc812352fe6975a3b9cf5 | |
parent | d0903f47a89859e00315fcc3db31f0c0cf7e487f [diff] |
timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE timer_get_boot_us function is required to record the boot stages as us-based timestamp. To get a micro-second time from a timer tick, this converts the formula like below to avoid zero result of (tick / rate) part. From: time(us) = (tick / rate) * 1000000 To : time(us) = (tick * 1000) / (rate / 1000) Signed-off-by: Chanho Park <chanho61.park@samsung.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>