diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-08 19:51:56 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-08 19:52:09 +0100 |
commit | a9c54f2c7f93127517b725952e67697bd82a7eeb (patch) | |
tree | 99691e943075dfea9b61c11f6ceb85f0efa8c89f /i386 | |
parent | ee5f05310f42a09fa274a3229ff840b639e93a1a (diff) | |
download | gnumach-a9c54f2c7f93127517b725952e67697bd82a7eeb.tar.gz gnumach-a9c54f2c7f93127517b725952e67697bd82a7eeb.tar.bz2 gnumach-a9c54f2c7f93127517b725952e67697bd82a7eeb.zip |
i386: relax CPU within spinlock loop
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/lock.h b/i386/i386/lock.h index 8efa0ca0..90f2d69a 100644 --- a/i386/i386/lock.h +++ b/i386/i386/lock.h @@ -59,7 +59,7 @@ ({ \ while(_simple_lock_xchg_(l, 1)) \ while (*(volatile int *)&(l)->lock_data) \ - continue; \ + __asm ("pause"); \ 0; \ }) |