Skip to contentSkip to conversation

linux-xencommons: Load xen-acpi-processor

PATCH In review Konrad Rzeszutek Wilk 2 participants 2 messages Mar 23, 2012 – Apr 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-xencommons: Load xen-acpi-processor

# HG changeset patch
# User Konrad Rzeszutek Wilk <[email protected]> # Date 1332510356 14400
# Node ID bb3ac8aac229dc1f0fc5e2db7e69604ab41e5528 # Parent 0ecb8ffe61b2ffff4331fcf49487c956ccb297a0
linux-xencommons: Load xen-acpi-processor

Upstream the "xen/acpi-processor: C and P-state driver that uploads said data to hypervisor." takes care of uploading power information information that normally a cpu frequency scaling driver would using in the initial domain. We want the hypervisor to take that data and make good usage of it.

Fortunatly for us we do not have to worry about the native cpu frequency scaling drivers being loaded first, as the upstream commit:
"xen/cpufreq: Disable the cpu frequency scaling drivers from loading." takes care of that. Meaning we can load the xen-acpi-processor at any time.

By default that driver is built as a module - and since we are the only user of it - we should load it.

tools/hotplug/Linux/init.d/xencommons +1 -0
diff -r 0ecb8ffe61b2 -r bb3ac8aac229 tools/hotplug/Linux/init.d/xencommons
@@ -58,6 +58,7 @@ do_start () {
 	modprobe xen-gntdev 2>/dev/null
 	modprobe evtchn 2>/dev/null
 	modprobe gntdev 2>/dev/null
+	modprobe xen-acpi-processor 2>/dev/null
 	mkdir -p /var/run/xen
 
 	if ! `xenstore-read -s / >/dev/null 2>&1`