ia64/xen-unstable
changeset 3391:3d57409179f9
bitkeeper revision 1.1159.212.11 (41decdbd8TPAvL-MaZNJDOO3L7L6MQ)
Fix CONFIG_MAGIC_SYSRQ compile issue with Linux 2.4 kernel.
Fix CONFIG_MAGIC_SYSRQ compile issue with Linux 2.4 kernel.
author | iap10@labyrinth.cl.cam.ac.uk |
---|---|
date | Fri Jan 07 17:58:21 2005 +0000 (2005-01-07) |
parents | 2afa7aa0076f |
children | 5ed334ff11f0 |
files | linux-2.6.10-xen-sparse/arch/xen/kernel/reboot.c |
line diff
1.1 --- a/linux-2.6.10-xen-sparse/arch/xen/kernel/reboot.c Fri Jan 07 01:41:05 2005 +0000 1.2 +++ b/linux-2.6.10-xen-sparse/arch/xen/kernel/reboot.c Fri Jan 07 17:58:21 2005 +0000 1.3 @@ -217,7 +217,11 @@ static void __shutdown_handler(void *unu 1.4 static void __sysrq_handler(void *unused) 1.5 { 1.6 #ifdef CONFIG_MAGIC_SYSRQ 1.7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) 1.8 handle_sysrq(pending_sysrq, NULL, NULL); 1.9 +#else 1.10 + handle_sysrq(pending_sysrq, NULL, NULL, NULL); 1.11 +#endif 1.12 #endif 1.13 pending_sysrq = -1; 1.14 }