summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-10-06 09:09:35 +0000
committerJakub Jelinek <jakub@redhat.com>2004-10-06 09:09:35 +0000
commit0caba1fbdb2bb0d78bbf3a9cf4d227ad1c1f8f86 (patch)
treef86a1435f78ca214fb24daf9ba7a85f3dfd1ff54 /sysdeps
parent6fb78a87583a6d2f65a0fb4a77c950ddc037876c (diff)
Updated to fedora-glibc-20041006T0900
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sysconf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysconf.c b/sysdeps/unix/sysv/linux/x86_64/sysconf.c
index 87f2c451f3..407fd46bc3 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sysconf.c
+++ b/sysdeps/unix/sysv/linux/x86_64/sysconf.c
@@ -279,6 +279,12 @@ handle_amd (int name)
long int
__sysconf (int name)
{
+ if (name == _SC_CPUTIME || name == _SC_THREAD_CPUTIME)
+ {
+ /* XXX Test whether TSC is usable. */
+ return 200112L;
+ }
+
/* We only handle the cache information here (for now). */
if (name < _SC_LEVEL1_ICACHE_SIZE || name > _SC_LEVEL4_CACHE_LINESIZE)
return linux_sysconf (name);