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:
Martin Whitaker 2022-02-28 20:19:50 +00:00
parent b3d350f454
commit 311a597766
1 changed files with 0 additions and 1 deletions

View File

@ -40,7 +40,6 @@ static inline void spin_lock(spinlock_t *lock)
__builtin_ia32_pause();
} while (*lock);
}
__sync_synchronize();
}
}