From owner-svn-src-stable@FreeBSD.ORG Sat Oct 6 19:06:23 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8CA0F10658F4; Sat, 6 Oct 2012 19:06:23 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 785758FC14; Sat, 6 Oct 2012 19:06:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q96J6NRV021992; Sat, 6 Oct 2012 19:06:23 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q96J6NR7021988; Sat, 6 Oct 2012 19:06:23 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201210061906.q96J6NR7021988@svn.freebsd.org> From: Andriy Gapon Date: Sat, 6 Oct 2012 19:06:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r241278 - stable/8/etc/rc.d X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 19:06:23 -0000 Author: avg Date: Sat Oct 6 19:06:23 2012 New Revision: 241278 URL: http://svn.freebsd.org/changeset/base/241278 Log: MFC r240343: rc.d/power_profile: use recently added Cmax for cx_lowest Modified: stable/8/etc/rc.d/power_profile Directory Properties: stable/8/etc/ (props changed) Modified: stable/8/etc/rc.d/power_profile ============================================================================== --- stable/8/etc/rc.d/power_profile Sat Oct 6 19:06:09 2012 (r241277) +++ stable/8/etc/rc.d/power_profile Sat Oct 6 19:06:23 2012 (r241278) @@ -81,8 +81,7 @@ esac # Set the various sysctls based on the profile's values. node="hw.acpi.cpu.cx_lowest" highest_value="C1" -lowest_value="`(sysctl -n dev.cpu.0.cx_supported | \ - awk '{ print "C" split($0, a) }' -) 2> /dev/null`" +lowest_value="Cmax" eval value=\$${profile}_cx_lowest sysctl_set