ia64/xen-unstable

changeset 11413:3e6325b73474

[LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
is exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Sep 01 16:11:51 2006 +0100 (2006-09-01)
parents 329ad7bbc7ec
children 1bab7d65171b 470666ea973d
files linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c	Fri Sep 01 13:52:04 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c	Fri Sep 01 16:11:51 2006 +0100
     1.3 @@ -26,6 +26,7 @@
     1.4  #include <xen/evtchn.h>
     1.5  #include "op_counter.h"
     1.6  
     1.7 +#include <xen/driver_util.h>
     1.8  #include <xen/interface/xen.h>
     1.9  #include <xen/interface/xenoprof.h>
    1.10  #include <../../../drivers/oprofile/cpu_buffer.h>
    1.11 @@ -396,7 +397,7 @@ static int xenoprof_set_passive(int * p_
    1.12  
    1.13  		npages = (passive_domains[i].bufsize * passive_domains[i].nbuf - 1) / PAGE_SIZE + 1;
    1.14  
    1.15 -		area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
    1.16 +		area = alloc_vm_area(npages * PAGE_SIZE);
    1.17  		if (area == NULL) {
    1.18  			ret = -ENOMEM;
    1.19  			goto out;
    1.20 @@ -502,7 +503,7 @@ int __init oprofile_arch_init(struct opr
    1.21  
    1.22  		npages = (init.bufsize * nbuf - 1) / PAGE_SIZE + 1;
    1.23  
    1.24 -		area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
    1.25 +		area = alloc_vm_area(npages * PAGE_SIZE);
    1.26  		if (area == NULL) {
    1.27  			ret = -ENOMEM;
    1.28  			goto out;