direct-io.hg

changeset 3399:470434865778

bitkeeper revision 1.1159.170.84 (41e01a98vOonZ_L1cH8hpqMPPdMZBg)

sysrq fix for 2.4.
author kaf24@scramble.cl.cam.ac.uk
date Sat Jan 08 17:38:32 2005 +0000 (2005-01-08)
parents 47678d2c18c3
children eceb1ecd0973 ea428d76cfb3
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	Sat Jan 08 17:30:16 2005 +0000
     1.2 +++ b/linux-2.6.10-xen-sparse/arch/xen/kernel/reboot.c	Sat Jan 08 17:38:32 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  }