mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-09-20 15:21:42 +01:00
Now that the lock relationship between an event and its owner hart is explicit, add TSA annotations for the SSE handling code. This includes indicating which fields are protected by a spinlock, as well as annotating which functions need to run under a spinlock. Exclude sse_local_init(), which initializes the spinlock to be acquired, and sse_event_get() / sse_event_put(), which perform conditional locking that TSA is not able to follow properly. Signed-off-by: Carlos López <carlos.lopezr4096@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260909162322.29778-14-carlos.lopezr4096@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>