voron

experimental ARM OS
git clone git://git.2f30.org/voron.git
Log | Files | Refs | LICENSE

commit 3ec1004731beb8400a4bf07417e8b6d5e5294e36
parent 36cd7d8f25befd84d2a3f614fab1b5b092f96bc0
Author: oblique <psyberbits@gmail.com>
Date:   Tue Apr  2 15:56:37 +0300

spinlock.h: rename INIT_SPINLOCK to spinlock_init

Diffstat:
include/semaphore.h | 2+-
include/spinlock.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/semaphore.h b/include/semaphore.h @@ -21,7 +21,7 @@ static inline void semaphore_init(semaphore_t *sem, u32 value) { sem->counter = value; - INIT_SPINLOCK(&sem->lock); + spinlock_init(&sem->lock); } /* returns 1 if managed to decreased the counter diff --git a/include/spinlock.h b/include/spinlock.h @@ -67,7 +67,7 @@ spinlock_trylock(spinlock_t *sl) } static inline void -INIT_SPINLOCK(spinlock_t *sl) +spinlock_init(spinlock_t *sl) { sl->lock = 0; }