direct-io.hg

changeset 11980:8b8c49d35d43

[IA64] Remove dom0_align which isn't used anymore.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Tue Oct 17 11:41:03 2006 -0600 (2006-10-17)
parents fcd746cf4647
children fd79ca20d91a
files xen/arch/ia64/xen/domain.c
line diff
     1.1 --- a/xen/arch/ia64/xen/domain.c	Sat Oct 14 18:10:08 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/domain.c	Tue Oct 17 11:41:03 2006 -0600
     1.3 @@ -50,7 +50,6 @@
     1.4  #include <asm/tlb_track.h>
     1.5  
     1.6  unsigned long dom0_size = 512*1024*1024;
     1.7 -unsigned long dom0_align = 64*1024*1024;
     1.8  
     1.9  /* dom0_max_vcpus: maximum number of VCPUs to create for dom0.  */
    1.10  static unsigned int dom0_max_vcpus = 1;
    1.11 @@ -877,23 +876,6 @@ void alloc_dom0(void)
    1.12  			" (try e.g. dom0_mem=256M or dom0_mem=65536K)\n");
    1.13  	}
    1.14  
    1.15 -	/* Check dom0 align.  */
    1.16 -	if ((dom0_align - 1) & dom0_align) { /* not a power of two */
    1.17 -		panic("dom0_align (%lx) must be power of two, boot aborted"
    1.18 -		      " (try e.g. dom0_align=256M or dom0_align=65536K)\n",
    1.19 -		      dom0_align);
    1.20 -	}
    1.21 -	if (dom0_align < PAGE_SIZE) {
    1.22 -		panic("dom0_align must be >= %ld, boot aborted"
    1.23 -		      " (try e.g. dom0_align=256M or dom0_align=65536K)\n",
    1.24 -		      PAGE_SIZE);
    1.25 -	}
    1.26 -	if (dom0_size % dom0_align) {
    1.27 -		dom0_size = (dom0_size / dom0_align + 1) * dom0_align;
    1.28 -		printf("dom0_size rounded up to %ld, due to dom0_align=%lx\n",
    1.29 -		     dom0_size,dom0_align);
    1.30 -	}
    1.31 -
    1.32  	if (running_on_sim) {
    1.33  		dom0_size = 128*1024*1024; //FIXME: Should be configurable
    1.34  	}
    1.35 @@ -1172,10 +1154,3 @@ static void parse_dom0_mem(char *s)
    1.36  	dom0_size = parse_size_and_unit(s);
    1.37  }
    1.38  custom_param("dom0_mem", parse_dom0_mem);
    1.39 -
    1.40 -
    1.41 -static void parse_dom0_align(char *s)
    1.42 -{
    1.43 -	dom0_align = parse_size_and_unit(s);
    1.44 -}
    1.45 -custom_param("dom0_align", parse_dom0_align);