kmod: Adjust kvm_smp_send_reschedule availability
PATCH 1/1 kmod: Adjust kvm_smp_send_reschedule availability
Also x86_64 before 2.6.26 requires kvm_smp_send_reschedule.
Signed-off-by Jan Kiszka <[email protected]>
---
external-module-compat-comm.h | 6 ++++-- external-module-compat.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-)
external-module-compat-comm.h +4 -2
@@ -214,10 +214,12 @@ typedef _Bool bool;#endif /* -* smp_call_function_mask() is not defined/exported below 2.6.24 +* smp_call_function_mask() is not defined/exported below 2.6.24 on all +* targets and below 2.6.26 on x86-64 */ -#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,24 ) +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,24 ) || \ + (definedCONFIG_X86_64 &&LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,26 ))int kvm_smp_call_function_mask (cpumask_t mask,void (*func) (void *info),void *info,int wait);
external-module-compat.c +4 -2
@@ -138,10 +138,12 @@ uint64_t div64_u64(uint64_t dividend, uint64_t divisor)#endif /* -* smp_call_function_mask() is not defined/exported below 2.6.24 +* smp_call_function_mask() is not defined/exported below 2.6.24 on all +* targets and below 2.6.26 on x86-64 */ -#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,24 ) +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,24 ) || \ + (definedCONFIG_X86_64 &&LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,26 ))#include <linux/smp.h>