aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sbi/riscv_locks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi/riscv_locks.h b/include/sbi/riscv_locks.h
index 492935f..38d9cbe 100644
--- a/include/sbi/riscv_locks.h
+++ b/include/sbi/riscv_locks.h
@@ -34,9 +34,9 @@ typedef struct {
#define DEFINE_SPIN_LOCK(x) \
spinlock_t SPIN_LOCK_INIT(x)
-int spin_lock_check(spinlock_t *lock);
+bool spin_lock_check(spinlock_t *lock);
-int spin_trylock(spinlock_t *lock);
+bool spin_trylock(spinlock_t *lock);
void spin_lock(spinlock_t *lock);