ia64/xen-unstable

changeset 11993:d30a4d4ccd94

PV-on-HVM: Implement and export a compatibility version of do_exit().
Kernels prior to 2.6.12 did not export do_exit().

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed Oct 25 13:58:30 2006 +0100 (2006-10-25)
parents 0886fc73e787
children db0d3f22e149
files unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c	Wed Oct 25 13:58:30 2006 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c	Wed Oct 25 13:58:30 2006 +0100
     1.3 @@ -73,3 +73,18 @@ out:
     1.4  }
     1.5  EXPORT_SYMBOL(wait_for_completion_timeout);
     1.6  #endif
     1.7 +
     1.8 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12)
     1.9 +/*
    1.10 +    fake do_exit using complete_and_exit
    1.11 + */
    1.12 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
    1.13 +asmlinkage NORET_TYPE void do_exit(long code)
    1.14 +#else
    1.15 +fastcall NORET_TYPE void do_exit(long code)
    1.16 +#endif
    1.17 +{
    1.18 +    complete_and_exit(NULL, code);
    1.19 +}
    1.20 +EXPORT_SYMBOL_GPL(do_exit);
    1.21 +#endif