summaryrefslogtreecommitdiff
path: root/unmodified_drivers/linux-2.6
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-11-01 09:33:56 +0000
committerKeir Fraser <keir@xensource.com>2007-11-01 09:33:56 +0000
commit1f0123a08fb0cb2add7aef6d74bcaad153d8c5cd (patch)
tree3ee6b39158b57ec42fe82fadeabc848ac7489cd7 /unmodified_drivers/linux-2.6
parentad2485afd057c0c0af69cc1b7c132e14ac8fba09 (diff)
downloadxen-1f0123a08fb0cb2add7aef6d74bcaad153d8c5cd.tar.gz
PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6')
-rw-r--r--unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h9
1 files changed, 8 insertions, 1 deletions
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 c720d6e9be..ca634ca086 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
@@ -44,13 +44,20 @@
#define gfp_t unsigned
#endif
-#if defined (_LINUX_NOTIFIER_H) && !defined ATOMIC_NOTIFIER_HEAD
+#if defined(_LINUX_NOTIFIER_H) && !defined(ATOMIC_NOTIFIER_HEAD)
#define ATOMIC_NOTIFIER_HEAD(name) struct notifier_block *name
#define atomic_notifier_chain_register(chain,nb) notifier_chain_register(chain,nb)
#define atomic_notifier_chain_unregister(chain,nb) notifier_chain_unregister(chain,nb)
#define atomic_notifier_call_chain(chain,val,v) notifier_call_chain(chain,val,v)
#endif
+#if defined(_LINUX_NOTIFIER_H) && !defined(BLOCKING_NOTIFIER_HEAD)
+#define BLOCKING_NOTIFIER_HEAD(name) struct notifier_block *name
+#define blocking_notifier_chain_register(chain,nb) notifier_chain_register(chain,nb)
+#define blocking_notifier_chain_unregister(chain,nb) notifier_chain_unregister(chain,nb)
+#define blocking_notifier_call_chain(chain,val,v) notifier_call_chain(chain,val,v)
+#endif
+
#if defined(_LINUX_MM_H) && defined set_page_count
#define init_page_count(page) set_page_count(page, 1)
#endif