From owner-freebsd-stable@FreeBSD.ORG Mon May 2 14:36:35 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 428BB106567A; Mon, 2 May 2011 14:36:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1A1648FC1E; Mon, 2 May 2011 14:36:35 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id EA8DB46B4C; Mon, 2 May 2011 10:36:34 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 84CBD8A02F; Mon, 2 May 2011 10:36:34 -0400 (EDT) From: John Baldwin To: freebsd-stable@freebsd.org Date: Mon, 2 May 2011 10:05:10 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110501042028.GA87381@icarus.home.lan> In-Reply-To: <20110501042028.GA87381@icarus.home.lan> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105021005.10878.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 02 May 2011 10:36:34 -0400 (EDT) Cc: jkim@freebsd.org, Jeremy Chadwick Subject: Re: Is machdep.cpu_idle_hlt deprecated? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 14:36:35 -0000 On Sunday, May 01, 2011 12:20:28 am Jeremy Chadwick wrote: > Anyone know if machdep.cpu_idle_hlt still exists? Taken from acpi(4) on > RELENG_8: > > hw.acpi.cpu.cx_lowest > Lowest Cx state to use for idling the CPU. A scheduling algo- > rithm will select states between C1 and this setting as system > load dictates. To enable ACPI CPU idling control, > machdep.cpu_idle_hlt must be set to 1. > > $ sysctl -d machdep.cpu_idle_hlt > sysctl: unknown oid 'machdep.cpu_idle_hlt' > > I'm taking a stab in the dark here, but it looks like the variable no > longer exists because it's been replaced with, effectively, the > framework that drives machdep.idle and machdep.idle_available > (specifically the mwait_hlt and hlt methods). Doing "grep -r > cpu_idle_hlt /usr/src" turns up nothing other than the cpu_idle_hlt() > functions that live within machdep.c per architecture, and those (based > on the code) correlate with what's shown in machdep.idle_available. > > If I'm correct, I believe that means we can safely remove the last line > of text in the acpi(4) man page? > > There's also a mention of this variable in a file called > src/tools/tools/sysdoc/tunables.mdoc, but I'm not sure what that is. Hmm, it appears that it is indeed deprecated. -- John Baldwin