[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 3e6325b73474b3764573178152503af27a914ab8
# Parent  329ad7bbc7ec43959e2669ff153f8073325d17be
[LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
is exported to modules.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 329ad7bbc7ec -r 3e6325b73474 
linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c
--- a/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c        Fri Sep 01 
13:52:04 2006 +0100
+++ b/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c        Fri Sep 01 
16:11:51 2006 +0100
@@ -26,6 +26,7 @@
 #include <xen/evtchn.h>
 #include "op_counter.h"
 
+#include <xen/driver_util.h>
 #include <xen/interface/xen.h>
 #include <xen/interface/xenoprof.h>
 #include <../../../drivers/oprofile/cpu_buffer.h>
@@ -396,7 +397,7 @@ static int xenoprof_set_passive(int * p_
 
                npages = (passive_domains[i].bufsize * passive_domains[i].nbuf 
- 1) / PAGE_SIZE + 1;
 
-               area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
+               area = alloc_vm_area(npages * PAGE_SIZE);
                if (area == NULL) {
                        ret = -ENOMEM;
                        goto out;
@@ -502,7 +503,7 @@ int __init oprofile_arch_init(struct opr
 
                npages = (init.bufsize * nbuf - 1) / PAGE_SIZE + 1;
 
-               area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
+               area = alloc_vm_area(npages * PAGE_SIZE);
                if (area == NULL) {
                        ret = -ENOMEM;
                        goto out;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.