Defines MAX_IO_APICS if not defined already with the same value used in
<asm/apicdef.h> and which wasn't loaded for non-smp kernels before 2.6.21

Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
 kernel/external-module-compat.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index acd7ea5..3794a99 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -558,6 +558,11 @@ static inline void blahblah(void)
 
 #endif
 
+/* apicdef.h doesn't get included before 2.6.21 if non-smp */
+#ifndef MAX_IO_APICS
+#define MAX_IO_APICS 64
+#endif
+
 /* X86_FEATURE_NX is missing in some x86_64 kernels */
 
 #include <asm/cpufeature.h>
-- 
1.5.2.5


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to