[PATCH v2 4/4] lib: sbi_timer: Introduce sbi_timer_compute_delta() and friends

Nicholas Piggin npiggin at gmail.com
Wed Apr 29 01:20:48 PDT 2026


On Sat, Apr 25, 2026 at 04:10:48PM +0530, Anup Patel wrote:
> The users of timer event have to compute next_event (aka timer value
> in the future) based on desired units and unit frequency. Introduce
> sbi_timer_compute_delta() and friends to simplify computing next_event
> for timer event users.
> 
> Signed-off-by: Anup Patel <anup.patel at oss.qualcomm.com>

Reviewed-by: Nicholas Piggin <npiggin at gmail.com>



More information about the opensbi mailing list