ia64/xen-unstable

changeset 1669:b7c52d517a26

bitkeeper revision 1.1041.6.4 (40e53583BjAVOWv5pUOm61mHPjnztg)

Fix 'halt' in xenolinux.
author kaf24@scramble.cl.cam.ac.uk
date Fri Jul 02 10:14:27 2004 +0000 (2004-07-02)
parents 0fc610c8aef9
children 136fbd9e41af
files linux-2.4.26-xen-sparse/arch/xen/kernel/process.c
line diff
     1.1 --- a/linux-2.4.26-xen-sparse/arch/xen/kernel/process.c	Fri Jul 02 10:03:23 2004 +0000
     1.2 +++ b/linux-2.4.26-xen-sparse/arch/xen/kernel/process.c	Fri Jul 02 10:14:27 2004 +0000
     1.3 @@ -115,7 +115,7 @@ void cpu_idle (void)
     1.4      }
     1.5  }
     1.6  
     1.7 -void machine_restart(char * __unused)
     1.8 +void machine_restart(char *__unused)
     1.9  {
    1.10      /* We really want to get pending console data out before we die. */
    1.11      extern void xencons_force_flush(void);
    1.12 @@ -128,7 +128,11 @@ void machine_halt(void)
    1.13      /* We really want to get pending console data out before we die. */
    1.14      extern void xencons_force_flush(void);
    1.15      xencons_force_flush();
    1.16 -    HYPERVISOR_shutdown();
    1.17 +    for ( ; ; ) /* loop without wasting cpu cycles */
    1.18 +    {
    1.19 +        HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_pending = 0;
    1.20 +        HYPERVISOR_block();
    1.21 +    }
    1.22  }
    1.23  
    1.24  void machine_power_off(void)