]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/x86/mach-generic/bigsmp.c
leds/acpi: Fix merge fallout from acpi_driver_data change
[linux-2.6-omap-h63xx.git] / arch / x86 / mach-generic / bigsmp.c
1 /*
2  * APIC driver for "bigsmp" XAPIC machines with more than 8 virtual CPUs.
3  * Drives the local APIC in "clustered mode".
4  */
5 #define APIC_DEFINITION 1
6 #include <linux/threads.h>
7 #include <linux/cpumask.h>
8 #include <asm/mpspec.h>
9 #include <asm/genapic.h>
10 #include <asm/fixmap.h>
11 #include <asm/apicdef.h>
12 #include <linux/kernel.h>
13 #include <linux/init.h>
14 #include <linux/dmi.h>
15 #include <asm/bigsmp/apicdef.h>
16 #include <linux/smp.h>
17 #include <asm/bigsmp/apic.h>
18 #include <asm/bigsmp/ipi.h>
19 #include <asm/mach-default/mach_mpparse.h>
20
21 static int dmi_bigsmp; /* can be set by dmi scanners */
22
23 static int hp_ht_bigsmp(const struct dmi_system_id *d)
24 {
25         printk(KERN_NOTICE "%s detected: force use of apic=bigsmp\n", d->ident);
26         dmi_bigsmp = 1;
27         return 0;
28 }
29
30
31 static const struct dmi_system_id bigsmp_dmi_table[] = {
32         { hp_ht_bigsmp, "HP ProLiant DL760 G2",
33         { DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
34         DMI_MATCH(DMI_BIOS_VERSION, "P44-"),}
35         },
36
37         { hp_ht_bigsmp, "HP ProLiant DL740",
38         { DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
39         DMI_MATCH(DMI_BIOS_VERSION, "P47-"),}
40         },
41          { }
42 };
43
44
45 static int probe_bigsmp(void)
46 {
47         if (def_to_bigsmp)
48                 dmi_bigsmp = 1;
49         else
50                 dmi_check_system(bigsmp_dmi_table);
51         return dmi_bigsmp;
52 }
53
54 struct genapic apic_bigsmp = APIC_INIT("bigsmp", probe_bigsmp);