From nobody@FreeBSD.org  Wed Nov 18 07:15:43 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BF5721065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Nov 2009 07:15:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id AD6E38FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Nov 2009 07:15:43 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nAI7Fhw3088221
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Nov 2009 07:15:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nAI7Fhrs088220;
	Wed, 18 Nov 2009 07:15:43 GMT
	(envelope-from nobody)
Message-Id: <200911180715.nAI7Fhrs088220@www.freebsd.org>
Date: Wed, 18 Nov 2009 07:15:43 GMT
From: vermaden <vermaden@interia.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dev.cpu.0.cx_lowest=C3 from /etc/sysctl.conf or /boot/loader.conf does not apply at boot when cpufreq used as module outside kernel
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140658
>Category:       kern
>Synopsis:       [cpufreq] dev.cpu.0.cx_lowest=C3 from /etc/sysctl.conf or /boot/loader.conf does not apply at boot when cpufreq used as module outside kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 18 07:20:02 UTC 2009
>Closed-Date:    
>Last-Modified:  Wed Nov 18 08:27:49 UTC 2009
>Originator:     vermaden
>Release:        possible to recreate on 8.0-RC2/8.0-RC3
>Organization:
>Environment:
stock GENERIC kernel and GENERIC kernel rebuild without cpufreq in
kernel config
>Description:
If you have cpufreq compiled into the kernel, then setting C-states
from /etc/sysctl.conf or /boot/loader.conf works as desired.

examples:
  /etc/sysctl.conf
  dev.cpu.0.cx_lowest=C2
  dev.cpu.0.cx_lowest=C3

  /boot/loader.conf
  cpufreq_load="YES"
  dev.cpu.0.cx_lowest=C2
  dev.cpu.0.cx_lowest=C3

When you tak cpufreq OUTSIDE the kernel, as a module, these
setting no longer apply after reboot, but you can manually set
them by sysctl(8) as usual.

Of course cpufreq is loaded at boot with cpufreq_load="YES" line in
/boot/loader.conf
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
