From e46b787ee33cfbec5438c60ada2014184bf0abf0 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 25 Oct 2006 13:58:30 +0100 Subject: PV-on-HVM: Implement compatibilty version of wait_for_completion_timeout for kernels before 2.6.11 Signed-off-by: Ian Campbell --- unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unmodified_drivers/linux-2.6/compat-include') diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index 185a97449c..1026f97653 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -33,4 +33,8 @@ unsigned long vmalloc_to_pfn(void *addr); #endif +#if defined(__LINUX_COMPLETION_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) +unsigned long wait_for_completion_timeout(struct completion *x, unsigned long timeout); +#endif + #endif -- cgit v1.2.3