CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2025/05/21 03:04:00

Modified files:
        sys/kern       : kern_lock.c 

Log message:
Improve  mtx_enter() for machines with a huge number of CPUs.

- Always read the value just before issuing an atomic operation to avoid
locking the cache line.

- Use an exponential backoff for the busy loop when waiting for a contended
lock.

Prevent hangs on Ampere Altra with highly contended mutexes.

ok kettenis@, dlg@

Reply via email to