mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
![H. Peter Anvin](/assets/img/avatar_default.png)
The current organization of the x86 documentation makes it appear as if the "i386" documentation doesn't apply to x86-64, which is does. Thus, move that documentation into Documentation/x86, and move the x86-64-specific stuff into Documentation/x86/x86_64 with the eventual goal to move stuff that isn't actually 64-bit specific back into Documentation/x86. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
21 lines
1.1 KiB
Text
21 lines
1.1 KiB
Text
Firmware support for CPU hotplug under Linux/x86-64
|
|
---------------------------------------------------
|
|
|
|
Linux/x86-64 supports CPU hotplug now. For various reasons Linux wants to
|
|
know in advance of boot time the maximum number of CPUs that could be plugged
|
|
into the system. ACPI 3.0 currently has no official way to supply
|
|
this information from the firmware to the operating system.
|
|
|
|
In ACPI each CPU needs an LAPIC object in the MADT table (5.2.11.5 in the
|
|
ACPI 3.0 specification). ACPI already has the concept of disabled LAPIC
|
|
objects by setting the Enabled bit in the LAPIC object to zero.
|
|
|
|
For CPU hotplug Linux/x86-64 expects now that any possible future hotpluggable
|
|
CPU is already available in the MADT. If the CPU is not available yet
|
|
it should have its LAPIC Enabled bit set to 0. Linux will use the number
|
|
of disabled LAPICs to compute the maximum number of future CPUs.
|
|
|
|
In the worst case the user can overwrite this choice using a command line
|
|
option (additional_cpus=...), but it is recommended to supply the correct
|
|
number (or a reasonable approximation of it, with erring towards more not less)
|
|
in the MADT to avoid manual configuration.
|