lib: sbi: sse: call enable callback before sending IPI
authorClément Léger <cleger@rivosinc.com>
Tue, 9 Apr 2024 10:02:06 +0000 (12:02 +0200)
committerAnup Patel <anup@brainfault.org>
Tue, 7 May 2024 11:58:44 +0000 (17:28 +0530)
commitce3c82cb2e2d6e41912b97c4f99e8567fadf445e
tree7165773e71c2f2ea9fe8c825a984a53396c8b7ff
parentd528dbfd4ba674dabb0a7b4466112e64c6ada3c6
lib: sbi: sse: call enable callback before sending IPI

Move the enable callback call before sending the IPI. Even though the
event is locked and no race condition can happen, this is more logical.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reported-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_sse.c