mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Remove pre-2.4.1 Linux kernel support.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user