Change formatting rules
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m7s
Build documentation / build-and-deploy (push) Successful in 39s

This commit is contained in:
2026-04-24 01:54:48 +02:00
parent 34f7809a2d
commit c8fb575bdd
208 changed files with 6310 additions and 6339 deletions

View File

@@ -2,13 +2,13 @@
#include <sync/spin_lock.h>
#include <sys/spin_lock.h>
void spin_lock (spin_lock_t* sl, uint64_t* flags) {
spin_lock_save_flags (flags);
while (atomic_flag_test_and_set_explicit (sl, memory_order_acquire))
spin_lock_relax ();
void spin_lock(spin_lock_t* sl, uint64_t* flags) {
spin_lock_save_flags(flags);
while (atomic_flag_test_and_set_explicit(sl, memory_order_acquire))
spin_lock_relax();
}
void spin_unlock (spin_lock_t* sl, uint64_t flags) {
atomic_flag_clear_explicit (sl, memory_order_release);
spin_lock_restore_flags (flags);
void spin_unlock(spin_lock_t* sl, uint64_t flags) {
atomic_flag_clear_explicit(sl, memory_order_release);
spin_lock_restore_flags(flags);
}