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);
|
int smp_intercpu_int_handler(int32 cpu);
|
||||||
|
|
||||||
void _acquire_spinlock(spinlock* lock);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -78,7 +76,7 @@ acquire_spinlock_inline(spinlock* lock)
|
|||||||
{
|
{
|
||||||
if (atomic_or((int32*)lock, 1) == 0)
|
if (atomic_or((int32*)lock, 1) == 0)
|
||||||
return;
|
return;
|
||||||
_acquire_spinlock(lock);
|
acquire_spinlock(lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ process_all_pending_ici(int32 currentCPU)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_acquire_spinlock(spinlock* lock)
|
acquire_spinlock(spinlock* lock)
|
||||||
{
|
{
|
||||||
#if DEBUG_SPINLOCKS
|
#if DEBUG_SPINLOCKS
|
||||||
if (are_interrupts_enabled()) {
|
if (are_interrupts_enabled()) {
|
||||||
@@ -1294,6 +1294,3 @@ memory_write_barrier(void)
|
|||||||
{
|
{
|
||||||
arch_cpu_memory_write_barrier();
|
arch_cpu_memory_write_barrier();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#pragma weak acquire_spinlock=_acquire_spinlock
|
|
||||||
|
|||||||
Reference in New Issue
Block a user