From owner-freebsd-stable@FreeBSD.ORG Fri Mar 11 16:12:57 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 689A816A4F1 for ; Fri, 11 Mar 2005 16:12:57 +0000 (GMT) Received: from mail.ticketswitch.com (mail.ticketswitch.com [194.200.93.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0530443D64 for ; Fri, 11 Mar 2005 16:12:57 +0000 (GMT) (envelope-from petefrench@ticketswitch.com) Received: from [172.16.1.6] (helo=dilbert.firstcallgroup.co.uk) by mail.ticketswitch.com with esmtp (Exim 4.50 (FreeBSD)) id 1D9mke-000A3H-Dg; Fri, 11 Mar 2005 16:12:36 +0000 Received: from petefrench by dilbert.firstcallgroup.co.uk with local (Exim 4.43 (FreeBSD)) id 1D9mka-000P9Q-1Y; Fri, 11 Mar 2005 16:12:32 +0000 To: noackjr@alumni.rice.edu, stable@FreeBSD.ORG In-Reply-To: <4230B125.9070005@alumni.rice.edu> Message-Id: From: Pete French Date: Fri, 11 Mar 2005 16:12:32 +0000 Subject: Re: Just a sanity check before I sumbit a buig report X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 16:12:57 -0000 > Why does sysconf(_SC_CLK_TCK) always returns 128? Check out sysconf() > in src/lib/libc/gen/sysconf.c (lines 83-84 of rev. 1.10): [follow through of code showing it is defined as a constant snipped] > To determine how stathz can vary, we'll have to dig deeper. Check out > initclocks() in src/sys/kern/kern_clock.c (lines 196-213 of rev. > 1.105.2.11): [follow through of code showing it depends on apm_attach() snipped] Thanks for that, most instructive! So the conclusion appears to be that sysconf(_SC_CLK_TCK) is doing the wrong thing by returning a constant then ? Thanks, I'll submit a pr about it. Do you mind if I attach your email to it to show the follow through of the code ? I havent looked at it myself in that much depth. -pcf.