34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
Index: xen-3.3.1-testing/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
|
|
===================================================================
|
|
--- xen-3.3.1-testing.orig/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c 2008-10-15 11:38:53.000000000 -0600
|
|
+++ xen-3.3.1-testing/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c 2008-10-15 11:49:33.000000000 -0600
|
|
@@ -14,7 +14,11 @@
|
|
|
|
void ctrl_alt_del(void)
|
|
{
|
|
- kill_proc(1, SIGINT, 1); /* interrupt init */
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
|
|
+ kill_proc(1, SIGINT, 1);
|
|
+#else
|
|
+ kill_pid(cad_pid, SIGINT, 1);
|
|
+#endif
|
|
}
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8)
|
|
Index: xen-3.3.1-testing/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c
|
|
===================================================================
|
|
--- xen-3.3.1-testing.orig/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c 2008-10-15 11:38:53.000000000 -0600
|
|
+++ xen-3.3.1-testing/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c 2008-10-15 11:39:04.000000000 -0600
|
|
@@ -44,7 +44,11 @@
|
|
atomic_dec(&info->nr_spinning);
|
|
}
|
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
|
|
#define initiate_ap_suspend(i) smp_call_function(ap_suspend, i, 0, 0)
|
|
+#else
|
|
+#define initiate_ap_suspend(i) smp_call_function(ap_suspend, i, 0)
|
|
+#endif
|
|
|
|
#else /* !defined(CONFIG_SMP) */
|
|
|