mirror of https://gitee.com/openkylin/linux.git
2c72a44ecd
Add the compare-and-delay instruction to the spin-lock and rw-lock retry loops. A CPU executing the compare-and-delay instruction stops until the lock value has changed. This is done to make the locking code for contended locks to behave better in regard to the multi- hreading facility. A thread of a core executing a compare-and-delay will allow the other threads of a core to get a larger share of the core resources. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> |
||
---|---|---|
.. | ||
Makefile | ||
delay.c | ||
div64.c | ||
find.c | ||
mem32.S | ||
mem64.S | ||
probes.c | ||
qrnnd.S | ||
spinlock.c | ||
string.c | ||
uaccess.c | ||
ucmpdi2.c |