/[linux-patches]/genpatches-2.6/trunk/2.6.15/2700_bios-disable-processor.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.15/2700_bios-disable-processor.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 297 - (show annotations) (download)
Fri Feb 3 23:01:31 2006 UTC (12 years, 4 months ago) by dsd
File size: 1408 byte(s)
Fix unused CPU on some SMP boards with broken BIOSes
1 Some broken BIOS's had processors disabled, but
2 same apic id as a valid processor. This causes
3 acpi_processor_start() to think this disabled
4 cpu is ok, and croak. So we dont record bad
5 apicid's anymore.
6
7 http://bugzilla.kernel.org/show_bug.cgi?id=5930
8
9 Signed-off-by: Ashok Raj <ashok.raj@intel.com>
10 ------------------------------------------------------
11 arch/i386/kernel/acpi/boot.c | 13 ++++++++++---
12 1 files changed, 10 insertions(+), 3 deletions(-)
13
14 Index: linux-2.6.16-rc1-mm2/arch/i386/kernel/acpi/boot.c
15 ===================================================================
16 --- linux-2.6.16-rc1-mm2.orig/arch/i386/kernel/acpi/boot.c
17 +++ linux-2.6.16-rc1-mm2/arch/i386/kernel/acpi/boot.c
18 @@ -248,10 +248,17 @@ acpi_parse_lapic(acpi_table_entry_header
19
20 acpi_table_print_madt_entry(header);
21
22 - /* Register even disabled CPUs for cpu hotplug */
23 -
24 - x86_acpiid_to_apicid[processor->acpi_id] = processor->id;
25 + /* Dont record local apic id when disabled */
26 + if (processor->flags.enabled)
27 + x86_acpiid_to_apicid[processor->acpi_id] = processor->id;
28
29 + /*
30 + * We need to register disabled CPU as well to permit
31 + * counting disabled CPUs. This allows us to size
32 + * cpus_possible_map more accurately, to permit
33 + * to not preallocating memory for all NR_CPUS
34 + * when we use CPU hotplug.
35 + */
36 mp_register_lapic(processor->id, /* APIC ID */
37 processor->flags.enabled); /* Enabled? */
38

  ViewVC Help
Powered by ViewVC 1.1.20