diff options
Diffstat (limited to 'kern/spinlock_i.h')
-rw-r--r-- | kern/spinlock_i.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/spinlock_i.h b/kern/spinlock_i.h index c07f6615..ed851099 100644 --- a/kern/spinlock_i.h +++ b/kern/spinlock_i.h @@ -35,8 +35,9 @@ spinlock_tryacquire(struct spinlock *lock) static inline void spinlock_acquire(struct spinlock *lock) { - while (spinlock_tryacquire(lock)) + while (spinlock_tryacquire(lock)) { cpu_pause(); + } } static inline void |