ia64/xen-unstable

changeset 7226:072fb38810a6

Revert changes checked in by mistake in previous changeset.
author kaf24@firebug.cl.cam.ac.uk
date Wed Oct 05 15:15:50 2005 +0100 (2005-10-05)
parents 8f8e42887f09
children 438f1b53682b
files linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c	Wed Oct 05 15:05:38 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c	Wed Oct 05 15:15:50 2005 +0100
     1.3 @@ -94,7 +94,7 @@ void enable_hlt(void)
     1.4  }
     1.5  
     1.6  EXPORT_SYMBOL(enable_hlt);
     1.7 -#define xxprint(msg) HYPERVISOR_console_io(CONSOLEIO_write, strlen(msg), msg)
     1.8 +
     1.9  /* XXX XEN doesn't use default_idle(), poll_idle(). Use xen_idle() instead. */
    1.10  extern void stop_hz_timer(void);
    1.11  extern void start_hz_timer(void);
    1.12 @@ -121,17 +121,10 @@ extern void smp_resume(void);
    1.13  /* We don't actually take CPU down, just spin without interrupts. */
    1.14  static inline void play_dead(void)
    1.15  {
    1.16 -    char foo[100];
    1.17 -
    1.18 -    sprintf(foo, "cpu=%d stack=%p\n", smp_processor_id(), foo);
    1.19 -    xxprint(foo);
    1.20 -
    1.21  	/* Death loop */
    1.22  	while (__get_cpu_var(cpu_state) != CPU_UP_PREPARE)
    1.23  		HYPERVISOR_sched_op(SCHEDOP_yield, 0);
    1.24  
    1.25 -        xxprint("Out of loop\n");
    1.26 -
    1.27  	__flush_tlb_all();
    1.28     /* 
    1.29      * Restore IPI/IRQ mappings before marking online to prevent 
    1.30 @@ -176,15 +169,10 @@ void cpu_idle (void)
    1.31  			rmb();
    1.32  
    1.33  			if (cpu_is_offline(cpu)) {
    1.34 -                            char foo[100];
    1.35  				local_irq_disable();
    1.36  #ifdef CONFIG_SMP
    1.37  				smp_suspend();
    1.38  #endif
    1.39 -
    1.40 -                                sprintf(foo, "X cpu=%d stack=%p\n",
    1.41 -                                        cpu, &cpu);
    1.42 -                                xxprint(foo);
    1.43  #if defined(CONFIG_XEN) && defined(CONFIG_HOTPLUG_CPU)
    1.44  				/* Ack it.  From this point on until
    1.45  				   we get woken up, we're not allowed