diff options
author | Clément Léger <cleger@rivosinc.com> | 2024-04-09 12:02:03 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-05-07 17:25:28 +0530 |
commit | 7aa80ea4954ea369dba8f5864a1386342c44d806 (patch) | |
tree | f32f24d98876a2787eeabadae31c39b408b63496 /lib/sbi/sbi_sse.c | |
parent | c21c99db6acf14fdf420271ce670b6a648fc3a9a (diff) | |
download | opensbi-7aa80ea4954ea369dba8f5864a1386342c44d806.zip opensbi-7aa80ea4954ea369dba8f5864a1386342c44d806.tar.gz opensbi-7aa80ea4954ea369dba8f5864a1386342c44d806.tar.bz2 |
lib: sbi: sse: rename sse_hart_unlock() to sse_enabled_event_unlock()
There was a naming incoherency between enabled events list lock/unlock.
Rename sse_hart_unlock() to sse_enabled_event_unlock() to be coherent
and reword comments above lock()/unlock() functions.
Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/sbi/sbi_sse.c')
-rw-r--r-- | lib/sbi/sbi_sse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sbi/sbi_sse.c b/lib/sbi/sbi_sse.c index a5fed34..0f8b347 100644 --- a/lib/sbi/sbi_sse.c +++ b/lib/sbi/sbi_sse.c @@ -208,7 +208,7 @@ static struct sse_global_event *sse_get_global_event(struct sbi_sse_event *e) } /** - * If event is global, must be called under global event lock + * If event is global, must be called under enabled event lock */ static void sse_enabled_event_lock(struct sbi_sse_event *e) { @@ -219,9 +219,9 @@ static void sse_enabled_event_lock(struct sbi_sse_event *e) } /** - * If event is global, must be called under global event lock + * If event is global, must be called under enabled event lock */ -static void sse_hart_unlock(struct sbi_sse_event *e) +static void sse_enabled_event_unlock(struct sbi_sse_event *e) { struct sse_hart_state *shs; @@ -753,7 +753,7 @@ int sbi_sse_enable(uint32_t event_id) sse_enabled_event_lock(e); ret = sse_event_enable(e); - sse_hart_unlock(e); + sse_enabled_event_unlock(e); sse_event_put(e); return ret; @@ -770,7 +770,7 @@ int sbi_sse_disable(uint32_t event_id) sse_enabled_event_lock(e); ret = sse_event_disable(e); - sse_hart_unlock(e); + sse_enabled_event_unlock(e); sse_event_put(e); |