mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1041.6.4 (40e53583BjAVOWv5pUOm61mHPjnztg)
Fix 'halt' in xenolinux.
This commit is contained in:
1 parent
63415e21f7
commit
293ffba5e1
1 file changed
+6
-2
@@ -115,7 +115,7 @@ void cpu_idle (void)
|
||||
}
|
||||
}
|
||||
|
||||
void machine_restart(char * __unused)
|
||||
void machine_restart(char *__unused)
|
||||
{
|
||||
/* We really want to get pending console data out before we die. */
|
||||
extern void xencons_force_flush(void);
|
||||
@@ -128,7 +128,11 @@ void machine_halt(void)
|
||||
/* We really want to get pending console data out before we die. */
|
||||
extern void xencons_force_flush(void);
|
||||
xencons_force_flush();
|
||||
HYPERVISOR_shutdown();
|
||||
for ( ; ; ) /* loop without wasting cpu cycles */
|
||||
{
|
||||
HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_pending = 0;
|
||||
HYPERVISOR_block();
|
||||
}
|
||||
}
|
||||
|
||||
void machine_power_off(void)
|
||||
|
||||