bitkeeper revision 1.1083 (40f54b0a40pzYjUMzMokIXYQ7fyBgA)

Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
This commit is contained in:
iap10@labyrinth.cl.cam.ac.uk committed 2004-07-14 15:02:34 +00:00
commit e4dcacadae
4 files changed
+15 -17

No files matched your search

@@ -125,14 +125,7 @@ void machine_restart(char *__unused)
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();
for ( ; ; ) /* loop without wasting cpu cycles */
{
HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_pending = 0;
HYPERVISOR_block();
}
machine_power_off();
}
void machine_power_off(void)
+1 -1
View File
@@ -7,7 +7,7 @@
# chkconfig: 2345 99 00
# description: Starts and stops the Xen control daemon.
. /etc/init.d/functions || . /etc/init.d/functions.sh
[ -f /etc/init.d/functions ] && . /etc/init.d/functions || . /etc/init.d/functions.sh
case "$1" in
start)
+1 -6
View File
@@ -199,12 +199,7 @@ void machine_restart(char * __unused)
void machine_halt(void)
{
machine_restart(0);
}
void machine_power_off(void)
{
machine_restart(0);
while(1){ safe_halt(); }
}
void arch_do_createdomain(struct domain *d)
+12 -2
View File
@@ -170,8 +170,18 @@ void domain_shutdown(u8 reason)
if ( current->domain == 0 )
{
extern void machine_restart(char *);
printk("Domain 0 shutdown: rebooting machine!\n");
machine_restart(0);
extern void machine_halt(void);
if ( reason == 0 )
{
printk("Domain 0 halted: Our work here is done.\n");
machine_halt();
}
else
{
printk("Domain 0 shutdown: rebooting machine!\n");
machine_restart(0);
}
}
current->shutdown_code = reason;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.