android_kernel_xiaomi_sm8350/arch/x86_64
Andi Kleen 420f8f68c9 [PATCH] x86_64: New heuristics to find out hotpluggable CPUs.
With a NR_CPUS==128 kernel with CPU hotplug enabled we would waste 4MB
on per CPU data of all possible CPUs.  The reason was that HOTPLUG
always set up possible map to NR_CPUS cpus and then we need to allocate
that much (each per CPU data is roughly ~32k now)

The underlying problem is that ACPI didn't tell us how many hotplug CPUs
the platform supports.  So the old code just assumed all, which would
lead to this memory wastage.

This implements some new heuristics:

 - If the BIOS specified disabled CPUs in the ACPI/mptables assume they
   can be enabled later (this is bending the ACPI specification a bit,
   but seems like a obvious extension)
 - The user can overwrite it with a new additionals_cpus=NUM option
 - Otherwise use half of the available CPUs or 2, whatever is more.

Cc: ashok.raj@intel.com
Cc: len.brown@intel.com

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-14 19:55:15 -08:00
..
boot [PATCH] x86-64: Fix gcc 4 warnings about pointer signedness 2005-09-12 10:50:56 -07:00
crypto
ia32 [PATCH] Remove orphaned TIOCGDEV compat ioctl 2005-10-30 17:37:25 -08:00
kernel [PATCH] x86_64: New heuristics to find out hotpluggable CPUs. 2005-11-14 19:55:15 -08:00
lib [PATCH] x86-64: bitops fix for -Os 2005-11-02 19:41:32 -08:00
mm [PATCH] x86_64: Replace swiotlb extern with include 2005-11-14 19:55:15 -08:00
oprofile
pci [PATCH] x86-64: Use ACPI PXM to parse PCI<->node assignments 2005-09-12 10:49:57 -07:00
defconfig [PATCH] x86_64: Update defconfig 2005-11-14 19:55:12 -08:00
Kconfig [PATCH] x86_64: Support for AMD specific MCE Threshold. 2005-11-14 19:55:13 -08:00
Kconfig.debug
Makefile kbuild: alpha,x86_64 use generic asm-offsets.h support 2005-09-09 21:28:48 +02:00