/* This function is called when the system is being rebooted.  */
static int xpc_system_reboot(struct notifier_block *, unsigned long, void *)
/* This function is called when the system is being rebooted.  */
static int xpc_system_reboot(struct notifier_block *, unsigned long, void *)
{
	enum xp_retval reason;
	switch (event) {
	case SYS_RESTART:
		reason = xpSystemReboot;
		break;
	case SYS_HALT:
		reason = xpSystemHalt;
		break;
	case SYS_POWER_OFF:
		reason = xpSystemPoweroff;
		break;
	default:
		reason = xpSystemGoingDown;
	}
	xpc_do_exit(reason);
	return NOTIFY_DONE;
}