mirror of git://sourceware.org/git/glibc.git
To help y2038 work avoid duplicate all the logic of nanosleep on
non cancellable version, the patch replace it with a new futex
operation, lll_timedwait. The changes are:
- Add a expected value for __lll_clocklock_wait, so it can be used
to wait for generic values.
- Remove its internal atomic operation and move the logic to
__lll_clocklock. It makes __lll_clocklock_wait even more generic
and __lll_clocklock slight faster on fast-path (since it won't
require a function call anymore).
- Add lll_timedwait, which uses __lll_clocklock_wait, to replace both
__pause_nocancel and __nanosleep_nocancel.
It also allows remove the sparc32 __lll_clocklock_wait implementation
(since it is similar to the generic one).
Checked on x86_64-linux-gnu, sparcv9-linux-gnu, and i686-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
|
||
|---|---|---|
| .. | ||
| bits | ||
| fpu | ||
| nptl | ||
| sparc32 | ||
| sparc64 | ||
| sys | ||
| Makefile | ||
| Subdirs | ||
| abort-instr.h | ||
| backtrace.c | ||
| configure | ||
| configure.ac | ||
| crti.S | ||
| crtn.S | ||
| dl-dtprocnum.h | ||
| dl-procinfo.c | ||
| dl-procinfo.h | ||
| dl-sysdep.h | ||
| dl-tls.h | ||
| gccframe.h | ||
| ldsodefs.h | ||
| machine-gmon.h | ||
| mempcpy.S | ||
| memusage.h | ||
| preconfigure | ||
| sparc-ifunc.h | ||
| sparc-mcount.S | ||
| stackinfo.h | ||
| sysdep.h | ||