Remove unnecessary memory fence from spin_lock().
The x86 locked instructions enforce total memory ordering, so the additional fence is redundant.
This commit is contained in:
parent
b3d350f454
commit
311a597766
|
@ -40,7 +40,6 @@ static inline void spin_lock(spinlock_t *lock)
|
|||
__builtin_ia32_pause();
|
||||
} while (*lock);
|
||||
}
|
||||
__sync_synchronize();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue