diff --git a/dom0/aux-tools/cpufreq-xen.modules b/dom0/aux-tools/cpufreq-xen.modules new file mode 100755 index 00000000..defac8c6 --- /dev/null +++ b/dom0/aux-tools/cpufreq-xen.modules @@ -0,0 +1,12 @@ +#!/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 + diff --git a/rpm_spec/core-dom0.spec b/rpm_spec/core-dom0.spec index 84a2975a..e45b9d70 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -121,6 +121,7 @@ cp ../qrexec/qubes_rpc_multiplexer $RPM_BUILD_ROOT/usr/lib/qubes cp aux-tools/qubes.ReceiveUpdates.policy $RPM_BUILD_ROOT/etc/qubes_rpc/policy/qubes.ReceiveUpdates cp aux-tools/qubes.ReceiveUpdates $RPM_BUILD_ROOT/etc/qubes_rpc/ install -D aux-tools/qubes-dom0.modules $RPM_BUILD_ROOT/etc/sysconfig/modules/qubes-dom0.modules +install -D aux-tools/cpufreq-xen.modules $RPM_BUILD_ROOT/etc/sysconfig/modules/cpufreq-xen.modules install -D aux-tools/qubes-dom0-updates.cron $RPM_BUILD_ROOT/etc/cron.daily/qubes-dom0-updates.cron install -D aux-tools/qubes-sync-clock.cron $RPM_BUILD_ROOT/etc/cron.d/qubes-sync-clock.cron @@ -353,6 +354,7 @@ fi /etc/NetworkManager/dispatcher.d/qubes_nmhook /etc/sysconfig/iptables /etc/sysconfig/modules/qubes-dom0.modules +/etc/sysconfig/modules/cpufreq-xen.modules /usr/lib64/pm-utils/sleep.d/01qubes-sync-vms-clock /usr/lib64/pm-utils/sleep.d/51qubes-suspend-netvm /usr/lib64/pm-utils/sleep.d/52qubes-pause-vms