summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/x86_64
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-03-06 08:26:03 +0000
committerRoland McGrath <roland@gnu.org>2006-03-06 08:26:03 +0000
commit6f920003899406055edfeb403989ce9215b34068 (patch)
treea803f99632a06227e26a56c4edfb80b81a5fcdce /sysdeps/unix/sysv/linux/x86_64
parent16a10468376803c5e48ac9c14cfa1a1dd2f7ec8f (diff)
* sysdeps/unix/sysv/linux/x86_64/sysconf.c
(handle_intel, handle_amd): Add __attribute__ ((noinline)). * sysdeps/unix/sysv/linux/i386/sysconf.c (handle_i486, handle_intel, handle_amd): Likewise. * sysdeps/unix/sysv/linux/i386/sysconf.c (__sysconf): Don't handle _SC_CPUTIME and _SC_THREAD_CPUTIME here. * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sysconf.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysconf.c b/sysdeps/unix/sysv/linux/x86_64/sysconf.c
index 99f704e1b9..726c5e33ac 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sysconf.c
+++ b/sysdeps/unix/sysv/linux/x86_64/sysconf.c
@@ -163,7 +163,7 @@ intel_check_word (int name, unsigned int value, bool *has_level_2,
}
-static long int
+static long int __attribute__ ((noinline))
handle_intel (int name, unsigned int maxidx)
{
assert (maxidx >= 2);
@@ -220,7 +220,7 @@ handle_intel (int name, unsigned int maxidx)
}
-static long int
+static long int __attribute__ ((noinline))
handle_amd (int name)
{
unsigned int eax;
@@ -293,12 +293,6 @@ 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);