s390/vdso: ectg gettime support for CLOCK_THREAD_CPUTIME_ID
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 2 Dec 2013 13:54:56 +0000 (14:54 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 2 Dec 2013 14:31:10 +0000 (15:31 +0100)
The code to use the ECTG instruction to calculate the cputime for the
current thread is currently used only for the per-thread CPU-clock
with the clockid -2 (PID=0, VIRT=1). Use the same code for the clockid
CLOCK_THREAD_CPUTIME_ID to speed up the more common clockid as well.

Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

No differences found