diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2015-11-23 05:36:12 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-12-21 09:40:55 -0500 |
commit | cfafae940381207d48b11a73a211142dba5947d3 (patch) | |
tree | ced7aa811e7013fcbc08fa9b2880a1e204425402 /drivers/xen/xen-acpi-pad.c | |
parent | 34e38523d586ae1e838241d44c8a2e9a1c9e0b43 (diff) |
xen: rename dom0_op to platform_op
The dom0_op hypercall has been renamed to platform_op since Xen 3.2,
which is ancient, and modern upstream Linux kernels cannot run as dom0
and it anymore anyway.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/xen/xen-acpi-pad.c')
-rw-r--r-- | drivers/xen/xen-acpi-pad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-acpi-pad.c b/drivers/xen/xen-acpi-pad.c index f83b754505f8..23d1808fe027 100644 --- a/drivers/xen/xen-acpi-pad.c +++ b/drivers/xen/xen-acpi-pad.c | |||
@@ -36,7 +36,7 @@ static int xen_acpi_pad_idle_cpus(unsigned int idle_nums) | |||
36 | op.u.core_parking.type = XEN_CORE_PARKING_SET; | 36 | op.u.core_parking.type = XEN_CORE_PARKING_SET; |
37 | op.u.core_parking.idle_nums = idle_nums; | 37 | op.u.core_parking.idle_nums = idle_nums; |
38 | 38 | ||
39 | return HYPERVISOR_dom0_op(&op); | 39 | return HYPERVISOR_platform_op(&op); |
40 | } | 40 | } |
41 | 41 | ||
42 | static int xen_acpi_pad_idle_cpus_num(void) | 42 | static int xen_acpi_pad_idle_cpus_num(void) |
@@ -46,7 +46,7 @@ static int xen_acpi_pad_idle_cpus_num(void) | |||
46 | op.cmd = XENPF_core_parking; | 46 | op.cmd = XENPF_core_parking; |
47 | op.u.core_parking.type = XEN_CORE_PARKING_GET; | 47 | op.u.core_parking.type = XEN_CORE_PARKING_GET; |
48 | 48 | ||
49 | return HYPERVISOR_dom0_op(&op) | 49 | return HYPERVISOR_platform_op(&op) |
50 | ?: op.u.core_parking.idle_nums; | 50 | ?: op.u.core_parking.idle_nums; |
51 | } | 51 | } |
52 | 52 | ||