diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-07-12 12:31:32 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-07-12 12:31:32 +0000 |
commit | ec332e944f4503b8e0f8fd5ae63384f82e528959 (patch) | |
tree | 3801001a26b579f44c760ac46d35ea76826da7df /sysdeps/unix/sysv/linux/prof-freq.c | |
parent | 7b6e99be77c24a79cb07416d81796b45176923c6 (diff) | |
download | glibc-ec332e944f4503b8e0f8fd5ae63384f82e528959.tar.gz |
Remove pre-2.4.1 Linux kernel support.
Diffstat (limited to 'sysdeps/unix/sysv/linux/prof-freq.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/prof-freq.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sysdeps/unix/sysv/linux/prof-freq.c b/sysdeps/unix/sysv/linux/prof-freq.c index e50731cdd7..b0f2553263 100644 --- a/sysdeps/unix/sysv/linux/prof-freq.c +++ b/sysdeps/unix/sysv/linux/prof-freq.c @@ -1,5 +1,5 @@ /* Determine realtime clock frequency. - Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc. + Copyright (C) 2003-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -25,26 +25,6 @@ int __profile_frequency (void) { -#ifdef __ASSUME_AT_CLKTCK return GLRO(dl_clktck); -#else - if (GLRO(dl_clktck) != 0) - return GLRO(dl_clktck); - - struct itimerval tim; - - tim.it_interval.tv_sec = 0; - tim.it_interval.tv_usec = 1; - tim.it_value.tv_sec = 0; - tim.it_value.tv_usec = 0; - - __setitimer (ITIMER_REAL, &tim, 0); - __setitimer (ITIMER_REAL, 0, &tim); - - if (tim.it_interval.tv_usec < 2) - return 0; - - return 1000000 / tim.it_interval.tv_usec; -#endif } libc_hidden_def (__profile_frequency) |