Initscript of cpufreq now detect the needen modules

Change the lines on cpu freq graph
This commit is contained in:
Arne Fitzenreiter
2008-08-02 20:46:51 +02:00
parent 69197dda64
commit a041a28d11
2 changed files with 14 additions and 20 deletions

View File

@@ -209,13 +209,13 @@ sub updatecpufreqgraph {
if ( -e "$rrdlog/collectd/localhost/cpufreq/cpufreq-1.rrd" ){
push(@command,"LINE1:cpu1".$color{"color11"}."A0:1",
push(@command,"LINE3:cpu1".$color{"color12"}."A0:1",
"GPRINT:cpu1:MAX:%3.0lf Mhz",
"GPRINT:cpu1:AVERAGE:%3.0lf Mhz",
"GPRINT:cpu1:MIN:%3.0lf Mhz",
"GPRINT:cpu1:LAST:%3.0lf Mhz\\j",);
}
push(@command,"LINE2:cpu0".$color{"color12"}."A1:0",
push(@command,"LINE2:cpu0".$color{"color11"}."A1:0",
"GPRINT:cpu0:MAX:%3.0lf Mhz",
"GPRINT:cpu0:AVERAGE:%3.0lf Mhz",
"GPRINT:cpu0:MIN:%3.0lf Mhz",

View File

@@ -17,24 +17,18 @@
case "${1}" in
start)
boot_mesg "Starting cpufreq ..."
# Chose your cpufreq module, acpi-cpufreq should work with
# newer hardware
modprobe acpi-cpufreq
# modprobe cpufreq-nforce2
# modprobe e-powersaver
# modprobe gx-suspmod
# modprobe longhaul
# modprobe longrun
# modprobe p4-clockmod
# modprobe powernow-k6
# modprobe powernow-k7
# modprobe powernow-k8
# modprobe speedstep-centrino
# modprobe speedstep-ich
# modprobe speedstep-lib
# modprobe speedstep-smi
boot_mesg -n "Starting cpufreq ... "
for module in acpi-cpufreq cpufreq-nforce2 e-powersaver \
gx-suspmod longhaul longrun p4-clockmod powernow-k6 \
powernow-k7 powernow-k8 speedstep-centrino speedstep-ich \
speedstep-smi; do
modprobe $module > /dev/null 2>&1;
if [ ${?} = 0 ]; then
boot_mesg -n "$SUCCESS$module$NORMAL "
fi
done
boot_mesg ""
# load cqufreq governors
modprobe cpufreq_conservative
modprobe cpufreq_ondemand