glibc/sysdeps
Adhemerval Zanella 77b6f55347 linux: Assume clock_getres CLOCK_{PROCESS,THREAD}_CPUTIME_ID
The Linux 3.2 clock_getres kernel code (kernel/posix-cpu-timers.c)
issued for clock_getres CLOCK_PROCESS_CPUTIME_ID (process_cpu_clock_getres)
and CLOCK_THREAD_CPUTIME_ID (thread_cpu_clock_getres) call
posix_cpu_clock_getres. And it fails on check_clock only if an invalid
clock is used (not the case) or if we pass an invalid the pid/tid in
29 msb of clock_id (not the case either).

This patch assumes that clock_getres syscall always support
CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID, so there is no need
to fallback to hp-timing support for _SC_MONOTONIC_CLOCK neither to issue
the syscall to certify the clock_id is supported bt the kernel.  This
allows simplify the sysconf support to always use the syscall.

it also removes ia64 itc drift check and assume kernel handles it correctly.

Checked on aarch64-linux-gnu, x86_64-linux-gnu, and i686-linux-gnu.

	* sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
	* sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
	* sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
	(__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
	_SC_CPUTIME, and _SC_THREAD_CPUTIME.
2019-03-22 16:52:29 -03:00
..
aarch64
alpha
arm
csky C-SKY: mark lr as undefined to stop unwinding 2019-03-11 09:51:14 +08:00
generic nptl: Remove pthread_clock_gettime pthread_clock_settime 2019-03-22 15:37:43 -03:00
gnu
hppa
htl
hurd
i386
ia64 Remove obsolete, never-implemented XSI STREAMS declarations 2019-03-14 15:44:15 +01:00
ieee754
init_array
m68k
mach nptl: Remove pthread_clock_gettime pthread_clock_settime 2019-03-22 15:37:43 -03:00
microblaze
mips
nios2
nptl nptl: Remove pthread_clock_gettime pthread_clock_settime 2019-03-22 15:37:43 -03:00
posix nptl: Remove pthread_clock_gettime pthread_clock_settime 2019-03-22 15:37:43 -03:00
powerpc Fix output of LD_SHOW_AUXV=1. 2019-03-13 10:45:35 +01:00
pthread
riscv
s390 S390: Add arch13 memmem ifunc variant. 2019-03-22 11:14:09 +01:00
sh
sparc Fix output of LD_SHOW_AUXV=1. 2019-03-13 10:45:35 +01:00
unix linux: Assume clock_getres CLOCK_{PROCESS,THREAD}_CPUTIME_ID 2019-03-22 16:52:29 -03:00
wordsize-32
wordsize-64
x86 Remove obsolete, never-implemented XSI STREAMS declarations 2019-03-14 15:44:15 +01:00
x86_64