mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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>
This commit is contained in:
1 parent
71f3f2ab74
commit
2b871cd871
3 files changed
+3
-2
No files matched your search
@@ -50,6 +50,7 @@ CFLAGS-$(crash_debug) += -DCRASH_DEBUG
|
||||
CFLAGS-$(perfc) += -DPERF_COUNTERS
|
||||
CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS
|
||||
CFLAGS-$(lock_profile) += -DLOCK_PROFILE
|
||||
CFLAGS-$(HAS_ACPI) += -DHAS_ACPI
|
||||
CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER
|
||||
|
||||
ifneq ($(max_phys_cpus),)
|
||||
|
||||
@@ -16,13 +16,11 @@ DUMMY(create_grant_host_mapping);
|
||||
DUMMY(__cpu_die);
|
||||
DUMMY(__cpu_disable);
|
||||
DUMMY(__cpu_up);
|
||||
DUMMY(do_get_pm_info);
|
||||
DUMMY(domain_get_maximum_gpfn);
|
||||
DUMMY(domain_relinquish_resources);
|
||||
DUMMY(domain_set_time_offset);
|
||||
DUMMY(dom_cow);
|
||||
DUMMY(donate_page);
|
||||
DUMMY(do_pm_op);
|
||||
DUMMY(flush_tlb_mask);
|
||||
DUMMY(free_vcpu_guest_context);
|
||||
DUMMY(get_page);
|
||||
|
||||
@@ -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:
|
||||
{
|
||||
|
||||