From 193ca2e8bbd7103200f2786f00a8c06aa54948e3 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 13 Feb 2007 15:32:25 +0000 Subject: [LINUX] Call ctrl_alt_del() to trigger a reboot so we benefit from the generic infrastructure for cad_pid etc. Add a ctrl_alt_del() implemenation to the PV on HVM compatibility layer since ctrl_alt_del() is not exported on native kernels. Signed-off-by: Ian Campbell --- unmodified_drivers/linux-2.6/platform-pci/platform-compat.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'unmodified_drivers') diff --git a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c index 5a0bb9bce8..7e1ad1f169 100644 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c @@ -13,6 +13,12 @@ static int system_state = 1; EXPORT_SYMBOL(system_state); #endif +static inline void ctrl_alt_del(void) +{ + kill_proc(1, SIGINT, 1); /* interrupt init */ +} +EXPORT_SYMBOL(ctrl_alt_del); + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8) size_t strcspn(const char *s, const char *reject) { -- cgit v1.2.3