aboutsummaryrefslogtreecommitdiff
path: root/kvm/kernel/ia64/external-module-compat.h
blob: d6b67feca9f0de4a60ddf7f992fc2219c2c76a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Compatibility header for building as an external module.
 */

#ifndef __ASSEMBLY__
#include <linux/version.h>

#include "../external-module-compat-comm.h"

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
#error "KVM/IA-64 Can't be compiled if kernel version < 2.6.26"
#endif

#ifndef CONFIG_PREEMPT_NOTIFIERS
/*Now, Just print an error message if no preempt notifiers configured!!
  TODO: Implement it later! */
#error "KVM/IA-64 depends on preempt notifiers in kernel."
#endif

/* smp_call_function() lost an argument in 2.6.27. */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)

#define kvm_smp_call_function(func, info, wait) smp_call_function(func, info, 0, wait)

#else

#define kvm_smp_call_function(func, info, wait) smp_call_function(func, info, wait)

#endif

#endif