ia64/xen-unstable

changeset 15135:90f19b7667f7

[IA64] Don't scrub pages when on SN2 simulator

Small patch to not call scrub_heap_pages() when running on Medusa.
Can't use the running_on_sim flag for this as that flag impacts too
many other things that make it fail for us.

Signed-off-by: Jes Sorensen <jes@sgi.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu May 24 14:20:19 2007 -0600 (2007-05-24)
parents 466f71b1e831
children 301267d0db12
files xen/arch/ia64/xen/xensetup.c
line diff
     1.1 --- a/xen/arch/ia64/xen/xensetup.c	Thu May 24 14:16:28 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/xensetup.c	Thu May 24 14:20:19 2007 -0600
     1.3 @@ -29,6 +29,7 @@
     1.4  #include <xen/softirq.h>
     1.5  #include <xen/rcupdate.h>
     1.6  #include <acm/acm_hooks.h>
     1.7 +#include <asm/sn/simulator.h>
     1.8  
     1.9  unsigned long xenheap_phys_end, total_pages;
    1.10  
    1.11 @@ -553,7 +554,7 @@ printk("num_online_cpus=%d, max_cpus=%d\
    1.12    			0) != 0)
    1.13          panic("Could not set up DOM0 guest OS\n");
    1.14  
    1.15 -    if (!running_on_sim)  // slow on ski and pages are pre-initialized to zero
    1.16 +    if (!running_on_sim && !IS_MEDUSA())  // slow on ski and pages are pre-initialized to zero
    1.17  	scrub_heap_pages();
    1.18  
    1.19      init_trace_bufs();