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:
Ingo Weinhold 2010-11-26 13:55:20 +00:00
parent c07db2ec3f
commit 07655104d5
2 changed files with 2 additions and 7 deletions

View File

@ -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);
}

View File

@ -293,7 +293,7 @@ process_all_pending_ici(int32 currentCPU)
void
_acquire_spinlock(spinlock* lock)
acquire_spinlock(spinlock* lock)
{
#if DEBUG_SPINLOCKS
if (are_interrupts_enabled()) {
@ -1294,6 +1294,3 @@ memory_write_barrier(void)
{
arch_cpu_memory_write_barrier();
}
#pragma weak acquire_spinlock=_acquire_spinlock