/[linux-patches]/genpatches-2.6/tags/3.0-8/1700_i386-bigsmp-early-lapicid-override.patch
Gentoo

Contents of /genpatches-2.6/tags/3.0-8/1700_i386-bigsmp-early-lapicid-override.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1988 - (show annotations) (download)
Tue Oct 4 07:39:33 2011 UTC (6 years, 6 months ago) by psomas
File size: 637 byte(s)
3.0-8 release
1 --- a/arch/x86/kernel/apic/probe_32.c
2 +++ b/arch/x86/kernel/apic/probe_32.c
3 @@ -203,7 +203,18 @@ void __init default_setup_apic_routing(v
4 if (!cmdline_apic && apic == &apic_default) {
5 struct apic *bigsmp = generic_bigsmp_probe();
6 if (bigsmp) {
7 + unsigned int cpu;
8 +
9 apic = bigsmp;
10 + for_each_possible_cpu(cpu) {
11 + if (early_per_cpu(x86_cpu_to_logical_apicid,
12 + cpu) == BAD_APICID)
13 + continue;
14 + early_per_cpu(x86_cpu_to_logical_apicid,
15 + cpu) =
16 + bigsmp->x86_32_early_logical_apicid
17 + (cpu);
18 + }
19 printk(KERN_INFO "Overriding APIC driver with %s\n",
20 apic->name);
21 }

  ViewVC Help
Powered by ViewVC 1.1.20