ia64/xen-unstable

changeset 11994:db0d3f22e149

PV-to-HVM: Impletement compatibility version of
schedule_timeout_interruptible for kernels before 2.6.14

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 d30a4d4ccd94
children 9f0b88aaf170
files unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Wed Oct 25 13:58:30 2006 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Wed Oct 25 13:58:30 2006 +0100
     1.3 @@ -37,4 +37,8 @@ unsigned long vmalloc_to_pfn(void *addr)
     1.4  unsigned long wait_for_completion_timeout(struct completion *x, unsigned long timeout);
     1.5  #endif
     1.6  
     1.7 +#if defined(_LINUX_SCHED_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
     1.8 +signed long schedule_timeout_interruptible(signed long timeout);
     1.9  #endif
    1.10 +
    1.11 +#endif
     2.1 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c	Wed Oct 25 13:58:30 2006 +0100
     2.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c	Wed Oct 25 13:58:30 2006 +0100
     2.3 @@ -88,3 +88,12 @@ fastcall NORET_TYPE void do_exit(long co
     2.4  }
     2.5  EXPORT_SYMBOL_GPL(do_exit);
     2.6  #endif
     2.7 +
     2.8 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
     2.9 +signed long schedule_timeout_interruptible(signed long timeout)
    2.10 +{
    2.11 +	__set_current_state(TASK_INTERRUPTIBLE);
    2.12 +	return schedule_timeout(timeout);
    2.13 +}
    2.14 +EXPORT_SYMBOL(schedule_timeout_interruptible);
    2.15 +#endif