]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
acpi/pmstat: build for x86 only
authorParth Dixit <parth.dixit@linaro.org>
Mon, 18 Jan 2016 13:55:23 +0000 (14:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jan 2016 13:55:23 +0000 (14:55 +0100)
Pmstat is currently not supported for ARM in Xen. Configure and build
pmstat for x86 architecture only.

Signed-off-by: Parth Dixit <parth.dixit@linaro.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/sysctl.c
xen/drivers/acpi/Makefile

index a3007b86f0532edcb05b98dd0a4d8d77e3a9d456..16240245ae219525bbd17aa3176e68a2a4381cee 100644 (file)
@@ -171,7 +171,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl)
         op->u.availheap.avail_bytes <<= PAGE_SHIFT;
         break;
 
-#ifdef CONFIG_HAS_ACPI
+#if defined (CONFIG_HAS_ACPI) && defined (CONFIG_HAS_CPUFREQ)
     case XEN_SYSCTL_get_pmstat:
         ret = do_get_pm_info(&op->u.get_pmstat);
         break;
index d8a42995a6d6e20c4e193ce9e37a18aa29068d92..fb6dfc3d3af8d3cecd84894ef695e33a056079ad 100644 (file)
@@ -5,7 +5,7 @@ subdir-$(CONFIG_X86) += apei
 obj-bin-y += tables.init.o
 obj-$(HAS_NUMA) += numa.o
 obj-y += osl.o
-obj-y += pmstat.o
+obj-$(CONFIG_HAS_CPUFREQ) += pmstat.o
 
 obj-$(CONFIG_X86) += hwregs.o
 obj-$(CONFIG_X86) += reboot.o