diff options
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) |