Eliminated _acquire_spinlock(). Since the macro is defined after
acquire_spinlock_inline(), there's actually no undesired recursion. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39647 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -62,8 +62,6 @@ int32 smp_get_current_cpu(void);
|
||||
|
||||
int smp_intercpu_int_handler(int32 cpu);
|
||||
|
||||
void _acquire_spinlock(spinlock* lock);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -78,7 +76,7 @@ acquire_spinlock_inline(spinlock* lock)
|
||||
{
|
||||
if (atomic_or((int32*)lock, 1) == 0)
|
||||
return;
|
||||
_acquire_spinlock(lock);
|
||||
acquire_spinlock(lock);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user