Message ID | 1447753261-7552-4-git-send-email-shannon.zhao@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
>>> On 17.11.15 at 10:40, <shannon.zhao@linaro.org> wrote: > --- a/xen/common/sysctl.c > +++ b/xen/common/sysctl.c > @@ -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 HAS_ACPI > +#ifdef HAS_CPUFREQ You should combine the two instead of replacing one with the other. Jan
diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index 85e853f..8273ad4 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -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 HAS_ACPI +#ifdef HAS_CPUFREQ case XEN_SYSCTL_get_pmstat: ret = do_get_pm_info(&op->u.get_pmstat); break; diff --git a/xen/drivers/acpi/Makefile b/xen/drivers/acpi/Makefile index 3bb626e..c7d006a 100644 --- a/xen/drivers/acpi/Makefile +++ b/xen/drivers/acpi/Makefile @@ -5,7 +5,7 @@ subdir-$(x86) += apei obj-bin-y += tables.init.o obj-$(HAS_NUMA) += numa.o obj-y += osl.o -obj-y += pmstat.o +obj-$(HAS_CPUFREQ) += pmstat.o obj-$(x86) += hwregs.o obj-$(x86) += reboot.o