diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-02-15 12:24:17 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-02-15 12:24:17 +0000 |
commit | 2b871cd871792f5cdac9dd318b0992be172bf083 (patch) | |
tree | 635c5827a3a180df212d733d9e7fd2ead6c5b407 /xen/common/sysctl.c | |
parent | 71f3f2ab7412d350208b6aa97313e43587906b60 (diff) | |
download | xen-2b871cd871792f5cdac9dd318b0992be172bf083.tar.gz xen-2b871cd871792f5cdac9dd318b0992be172bf083.tar.bz2 xen-2b871cd871792f5cdac9dd318b0992be172bf083.zip |
PM: only include XEN_SYSCTL_{get_pmstat,pm_op} if HAVE_ACPI
These hypercalls are currently ACPI specific and implemented in
xen/drivers/acpi which is not implemented on ARM.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: keir@xen.org
Committed-by: Ian Campbell <Ian.Campbell@citrix.com>
Diffstat (limited to 'xen/common/sysctl.c')
-rw-r--r-- | xen/common/sysctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index f8f7cf8c36..fef058991a 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -224,6 +224,7 @@ long do_sysctl(XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl) } break; +#ifdef HAS_ACPI case XEN_SYSCTL_get_pmstat: { ret = xsm_get_pmstat(); @@ -259,6 +260,7 @@ long do_sysctl(XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl) } } break; +#endif case XEN_SYSCTL_page_offline_op: { |