Files
mop3/kernel/amd64/spin_lock.c
kamkow1 90084652fa
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 1m31s
Build documentation / build-and-deploy (push) Successful in 1m2s
Remove spin_lock_save_flags() and spin_lock_restore_flags()
2026-04-27 18:11:18 +02:00

5 lines
152 B
C

#include <sys/spin_lock.h>
/// Relax the spinlock using AMD64 pause instruction
void spin_lock_relax(void) { __asm__ volatile("pause" ::: "memory"); }