qubes-core-admin-linux/system-config/cpufreq-xen.modules
Marek Marczykowski-Górecki c457b485cb Load xen-acpi-processor module
It is required for cpufreq to work.
2015-04-10 17:56:58 +02:00

14 lines
312 B
Bash
Executable File

#!/bin/sh
if modinfo cpufreq-xen > /dev/null 2>&1; then
modprobe acpi-cpufreq || exit 1
modprobe cpufreq-xen
for f in /sys/devices/system/cpu/cpu[0-9]*/cpufreq/scaling_governor; do
echo xen > $f
done
fi
if modinfo xen-acpi-processor &>/dev/null; then
modprobe xen-acpi-processor
fi