Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18356
b: refs/heads/master
c: d6ad033
h: refs/heads/master
v: v3
  • Loading branch information
Dean Nelson authored and Tony Luck committed Jan 13, 2006
1 parent b39d5ca commit 9bca697
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f4674b2d5f63bac4c393ac4de1d6c1b6b72c09c
refs/heads/master: d6ad033a88b42420ddb6c62c95e42f88d862b246
58 changes: 29 additions & 29 deletions trunk/arch/ia64/sn/kernel/xpc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,35 @@ xpc_do_exit(enum xpc_retval reason)


/*
* Called when the system is about to be either restarted or halted.
* This function is called when the system is being rebooted.
*/
static int
xpc_system_reboot(struct notifier_block *nb, unsigned long event, void *unused)
{
enum xpc_retval reason;


switch (event) {
case SYS_RESTART:
reason = xpcSystemReboot;
break;
case SYS_HALT:
reason = xpcSystemHalt;
break;
case SYS_POWER_OFF:
reason = xpcSystemPoweroff;
break;
default:
reason = xpcSystemGoingDown;
}

xpc_do_exit(reason);
return NOTIFY_DONE;
}


/*
* Notify other partitions to disengage from all references to our memory.
*/
static void
xpc_die_disengage(void)
Expand Down Expand Up @@ -1122,34 +1150,6 @@ xpc_die_disengage(void)
}


/*
* This function is called when the system is being rebooted.
*/
static int
xpc_system_reboot(struct notifier_block *nb, unsigned long event, void *unused)
{
enum xpc_retval reason;


switch (event) {
case SYS_RESTART:
reason = xpcSystemReboot;
break;
case SYS_HALT:
reason = xpcSystemHalt;
break;
case SYS_POWER_OFF:
reason = xpcSystemPoweroff;
break;
default:
reason = xpcSystemGoingDown;
}

xpc_do_exit(reason);
return NOTIFY_DONE;
}


/*
* This function is called when the system is being restarted or halted due
* to some sort of system failure. If this is the case we need to notify the
Expand Down

0 comments on commit 9bca697

Please sign in to comment.