diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-10-06 09:09:35 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-10-06 09:09:35 +0000 |
commit | 0caba1fbdb2bb0d78bbf3a9cf4d227ad1c1f8f86 (patch) | |
tree | f86a1435f78ca214fb24daf9ba7a85f3dfd1ff54 /sysdeps/unix | |
parent | 6fb78a87583a6d2f65a0fb4a77c950ddc037876c (diff) |
Updated to fedora-glibc-20041006T0900
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/sysconf.c | 6 |
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); |