5a5525b048
getcpu reads the required values for cpu and node with two instructions. This might lead to an inconsistent result if user space gets preempted and migrated to a different CPU between the two instructions. Fix this by using just a single instruction to read both values at once. This is currently rather a theoretical bug, since there is no real NUMA support available (except for NUMA emulation). Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
clock_getres.S | ||
clock_gettime.S | ||
getcpu.S | ||
gettimeofday.S | ||
note.S | ||
vdso64.lds.S | ||
vdso64_wrapper.S |