diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2009-08-28 15:38:56 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2009-08-28 15:42:21 -0700 |
commit | 90ae175f1e0f126d93db1f9c29a3f44d76087e8d (patch) | |
tree | 03b1ceb296559de6fc1f199c5edeb809397b982b | |
parent | 6d5cd9bde64b0c09ef72c4534a97caa8ebf0e426 (diff) | |
download | vyatta-cfg-90ae175f1e0f126d93db1f9c29a3f44d76087e8d.tar.gz vyatta-cfg-90ae175f1e0f126d93db1f9c29a3f44d76087e8d.zip |
Bugfix 4793: Load the acpi_cpufreq module on certain processors.
(cherry picked from commit 6202e7c5f0e8e0657c49e9d8422b6ef45b9ff84b)
-rwxr-xr-x | etc/init.d/vyatta-ofr | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index 4fb4c1e..39e9904 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -125,7 +125,20 @@ cleanup_raid() rmmod $MD_MODULES > /tmp/vyatta_raid_cleanup_log 2>&1 } - +# +# Load the acpi_cpufreq kernel module, but only for certain processors. +# Some Intel CPUs need to have it loaded in order to initialize +# properly. +# +load_acpi_cpufreq() +{ + manuf=`dmidecode -s processor-manufacturer` + family=`dmidecode -s processor-family` + if [ "$manuf" = "Intel" -a "$family" = "Xeon" ]; then + logger -t "$progname" -p user.notice "loading acpi_cpufreq module" + modprobe acpi_cpufreq + fi +} start () { @@ -141,6 +154,7 @@ start () ${vyatta_sbindir}/${s}.init start || (log_end_msg $? && return) done load_bootfile + load_acpi_cpufreq cleanup_raid chmod g-w,o-w / |