From 13463af29f1fd904cc0ea5e0bd0acdabd8431e53 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 31 Dec 2006 18:58:32 +0000 Subject: remove commented out #includes etc move get_hz to the only caller --- networking/libiproute/utils.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'networking/libiproute/utils.c') diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index aa60ffd01..7e74e1c4b 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c @@ -294,26 +294,6 @@ int inet_addr_match(inet_prefix * a, inet_prefix * b, int bits) return 0; } -int __iproute2_hz_internal; - -int __get_hz(void) -{ - int hz = 0; - FILE *fp = fopen("/proc/net/psched", "r"); - - if (fp) { - unsigned nom, denom; - - if (fscanf(fp, "%*08x%*08x%08x%08x", &nom, &denom) == 2) - if (nom == 1000000) - hz = denom; - fclose(fp); - } - if (hz) - return hz; - return sysconf(_SC_CLK_TCK); -} - const char *rt_addr_n2a(int af, int ATTRIBUTE_UNUSED len, void *addr, char *buf, int buflen) { -- cgit v1.2.3