ia64/xen-unstable

changeset 16294:931e4b987257

PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
author Keir Fraser <keir@xensource.com>
date Thu Nov 01 09:33:56 2007 +0000 (2007-11-01)
parents 3191627e5ad6
children 76f30b65854f
files unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Wed Oct 31 16:21:18 2007 +0000
     1.2 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Thu Nov 01 09:33:56 2007 +0000
     1.3 @@ -44,13 +44,20 @@
     1.4  #define gfp_t unsigned
     1.5  #endif
     1.6  
     1.7 -#if defined (_LINUX_NOTIFIER_H) && !defined ATOMIC_NOTIFIER_HEAD
     1.8 +#if defined(_LINUX_NOTIFIER_H) && !defined(ATOMIC_NOTIFIER_HEAD)
     1.9  #define ATOMIC_NOTIFIER_HEAD(name) struct notifier_block *name
    1.10  #define atomic_notifier_chain_register(chain,nb) notifier_chain_register(chain,nb)
    1.11  #define atomic_notifier_chain_unregister(chain,nb) notifier_chain_unregister(chain,nb)
    1.12  #define atomic_notifier_call_chain(chain,val,v) notifier_call_chain(chain,val,v)
    1.13  #endif
    1.14  
    1.15 +#if defined(_LINUX_NOTIFIER_H) && !defined(BLOCKING_NOTIFIER_HEAD)
    1.16 +#define BLOCKING_NOTIFIER_HEAD(name) struct notifier_block *name
    1.17 +#define blocking_notifier_chain_register(chain,nb) notifier_chain_register(chain,nb)
    1.18 +#define blocking_notifier_chain_unregister(chain,nb) notifier_chain_unregister(chain,nb)
    1.19 +#define blocking_notifier_call_chain(chain,val,v) notifier_call_chain(chain,val,v)
    1.20 +#endif
    1.21 +
    1.22  #if defined(_LINUX_MM_H) && defined set_page_count
    1.23  #define init_page_count(page) set_page_count(page, 1)
    1.24  #endif