diff options
author | David Vrabel <david.vrabel@citrix.com> | 2011-09-29 11:53:29 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-09-29 15:02:18 -0400 |
commit | 4dcaebbf6586d299be8513512a1253f177b803d7 (patch) | |
tree | 0f10ceff7ba544fe83a9644800695054047172a8 /drivers/xen/xenbus | |
parent | a102a9ece5489e1718cd7543aa079082450ac3a2 (diff) |
xen: use generic functions instead of xen_{alloc, free}_vm_area()
Replace calls to the Xen-specific xen_alloc_vm_area() and
xen_free_vm_area() functions with the generic equivalent
(alloc_vm_area() and free_vm_area()).
On x86, these were identical already.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xenbus')
-rw-r--r-- | drivers/xen/xenbus/xenbus_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index cdacf923e073..229d3adce85d 100644 --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c | |||
@@ -443,7 +443,7 @@ int xenbus_map_ring_valloc(struct xenbus_device *dev, int gnt_ref, void **vaddr) | |||
443 | 443 | ||
444 | *vaddr = NULL; | 444 | *vaddr = NULL; |
445 | 445 | ||
446 | area = xen_alloc_vm_area(PAGE_SIZE); | 446 | area = alloc_vm_area(PAGE_SIZE); |
447 | if (!area) | 447 | if (!area) |
448 | return -ENOMEM; | 448 | return -ENOMEM; |
449 | 449 | ||
@@ -453,7 +453,7 @@ int xenbus_map_ring_valloc(struct xenbus_device *dev, int gnt_ref, void **vaddr) | |||
453 | BUG(); | 453 | BUG(); |
454 | 454 | ||
455 | if (op.status != GNTST_okay) { | 455 | if (op.status != GNTST_okay) { |
456 | xen_free_vm_area(area); | 456 | free_vm_area(area); |
457 | xenbus_dev_fatal(dev, op.status, | 457 | xenbus_dev_fatal(dev, op.status, |
458 | "mapping in shared page %d from domain %d", | 458 | "mapping in shared page %d from domain %d", |
459 | gnt_ref, dev->otherend_id); | 459 | gnt_ref, dev->otherend_id); |
@@ -552,7 +552,7 @@ int xenbus_unmap_ring_vfree(struct xenbus_device *dev, void *vaddr) | |||
552 | BUG(); | 552 | BUG(); |
553 | 553 | ||
554 | if (op.status == GNTST_okay) | 554 | if (op.status == GNTST_okay) |
555 | xen_free_vm_area(area); | 555 | free_vm_area(area); |
556 | else | 556 | else |
557 | xenbus_dev_error(dev, op.status, | 557 | xenbus_dev_error(dev, op.status, |
558 | "unmapping page at handle %d error %d", | 558 | "unmapping page at handle %d error %d", |