Increase the maximum number of apics when running very large
configurations. This patch has no affect on most systems.
Signed-off-by: Jack Steiner <steiner@sgi.com>
---
I think this area of the code will be substantially changed when
the full x2apic patch is available. In the meantime, this seems
like an acceptible alternative. The patch has no effect on any 32-bit
kernel. It adds ~4k to the size of 64-bit kernels but only if
NR_CPUS > 255.
include/asm-x86/mpspec_def.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Index: linux/include/asm-x86/mpspec_def.h
===================================================================
--- linux.orig/include/asm-x86/mpspec_def.h 2008-03-29 06:45:28.000000000 -0500
+++ linux/include/asm-x86/mpspec_def.h 2008-03-31 14:17:01.000000000 -0500
@@ -17,10 +17,11 @@
# define MAX_MPC_ENTRY 1024
# define MAX_APICS 256
#else
-/*
- * A maximum of 255 APICs with the current APIC ID architecture.
- */
-# define MAX_APICS 255
+# if NR_CPUS <= 255
+# define MAX_APICS 255
+# else
+# define MAX_APICS 32768
+# endif
#endif
struct intel_mp_floating {
--
| Christoph Hellwig | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| David Miller | [GIT]: Networking |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Tetsuo Handa | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation,pathname matching |
git: | |
| Junio C Hamano | [RFD] On deprecating "git-foo" for builtins |
| Raimund Bauer | [wishlist] graphical diff |
| Dana How | [PATCH v3] Support ent:relative_path |
| Li Frank-B20596 | why not TortoiseGit |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Glenn Griffin | [PATCH] Add IPv6 support to TCP SYN cookies |
| Alexey Suslikov | OT: OpenBSD on Asus eeePC |
| Daniele Pilenga | HP nw9440 does not boot ACPI snapshot |
| Peter | OpenBSD as Virtualbox guest |
| Calomel | Re: Remove escape characters from file |
