rpms/cpuspeed/devel cpuspeed.init, 1.17, 1.18 cpuspeed.spec, 1.45, 1.46
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Thu Dec 14 22:40:40 UTC 2006
- Previous message (by thread): rpms/dbus/FC-5 dbus-1.0.0-dont-die-on-error.patch, NONE, 1.1 dbus.spec, 1.76, 1.77
- Next message (by thread): rpms/kernel/devel patch-2.6.20-rc1-git1.bz2.sign, NONE, 1.1 .cvsignore, 1.553, 1.554 kernel-2.6.spec, 1.2877, 1.2878 sources, 1.516, 1.517 upstream, 1.444, 1.445
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwilson
Update of /cvs/dist/rpms/cpuspeed/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv30579
Modified Files:
cpuspeed.init cpuspeed.spec
Log Message:
- Set lock file for centrino/powernow-k8 so status
indicates we do have scaling working
- Fix up centrino/powernow-k8 stop function (#213999)
Index: cpuspeed.init
===================================================================
RCS file: /cvs/dist/rpms/cpuspeed/devel/cpuspeed.init,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- cpuspeed.init 29 Nov 2006 21:46:41 -0000 1.17
+++ cpuspeed.init 14 Dec 2006 22:40:33 -0000 1.18
@@ -17,7 +17,8 @@
fi
cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
-testpat='/sys/devices/system/cpu/cpu*/cpufreq/scaling_driver'
+cpus='/sys/devices/system/cpu/cpu*'
+testpat="${cpus}/cpufreq/scaling_driver"
some_file_exist() {
while [ "$1" ] ; do
@@ -61,11 +62,14 @@
case "$drv" in
centrino|powernow-k8)
/sbin/modprobe cpufreq-ondemand
- for i in /sys/devices/system/cpu/cpu*
+ for cpu in ${cpus}
do
- echo ondemand > $i/cpufreq/scaling_governor
+ echo ondemand > $cpu/cpufreq/scaling_governor
done
RETVAL=0
+ # technically, not quite right, but close enough to
+ # illustrate that we're doing frequency scaling
+ touch /var/lock/subsys/cpuspeed
;;
*)
echo -n $"Starting $prog: "
@@ -86,6 +90,11 @@
case "$drv" in
centrino|powernow-k8)
+ for cpu in ${cpus}
+ do
+ echo userspace > $cpu/cpufreq/scaling_governor
+ cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
+ done
/sbin/modprobe -r cpufreq-ondemand
RETVAL=0
;;
Index: cpuspeed.spec
===================================================================
RCS file: /cvs/dist/rpms/cpuspeed/devel/cpuspeed.spec,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- cpuspeed.spec 29 Nov 2006 21:46:41 -0000 1.45
+++ cpuspeed.spec 14 Dec 2006 22:40:33 -0000 1.46
@@ -77,6 +77,11 @@
exit 0
%changelog
+* Thu Dec 14 2006 Jarod Wilson <jwilson at redhat.com>
+- Set lock file for centrino/powernow-k8 so status
+ indicates we do have scaling working
+- Fix up centrino/powernow-k8 stop function (#213999)
+
* Wed Nov 29 2006 Jarod Wilson <jwilson at redhat.com>
- Fix busted config file sourcing
- Previous message (by thread): rpms/dbus/FC-5 dbus-1.0.0-dont-die-on-error.patch, NONE, 1.1 dbus.spec, 1.76, 1.77
- Next message (by thread): rpms/kernel/devel patch-2.6.20-rc1-git1.bz2.sign, NONE, 1.1 .cvsignore, 1.553, 1.554 kernel-2.6.spec, 1.2877, 1.2878 sources, 1.516, 1.517 upstream, 1.444, 1.445
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list