conf/73677: [patch] add support for powernow states to power_profile

Russell Jackson raj at dhcp217-212.csub.edu
Mon Nov 8 10:40:27 PST 2004


>Number:         73677
>Category:       conf
>Synopsis:       [patch] add support for powernow states to power_profile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 08 18:40:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Russell Jackson
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD dhcp217-212.csub.edu. 5.3-STABLE FreeBSD 5.3-STABLE #8: Sun Oct 31 14:55:17 PST 2004 raj at dhcp217-212.csub.edu.:/usr/src/sys/i386/compile/VALA i386


	
>Description:
	
	Patch to add AMD powernow states to power_profile provided by the powernow_k7
	kernel module provided at http://www.poupinou.org/cpufreq/bsd/powernow_k7/.
>How-To-Repeat:
	
>Fix:

--- src/etc/rc.d/power_profile.orig	Fri Oct 29 10:09:38 2004
+++ src/etc/rc.d/power_profile		Sat Nov  6 17:31:48 2004
@@ -83,4 +83,10 @@
 eval value=\$${profile}_throttle_state
 sysctl_set
 
+node="hw.powernow.state"
+highest_value=0
+lowest_value="$(sysctl -n hw.powernow.max_states 2> /dev/null)"
+eval value=\$${profile}_powernow_state
+sysctl_set
+
 exit 0
	


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


More information about the freebsd-bugs mailing list