]>
Commit | Line | Data |
---|---|---|
637cba02 | 1 | /* |
1da177e4 LT |
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 | |
1da177e4 LT |
6 | #include <linux/threads.h> |
7 | #include <linux/cpumask.h> | |
874c4fe3 | 8 | #include <asm/smp.h> |
1da177e4 LT |
9 | #include <asm/mpspec.h> |
10 | #include <asm/genapic.h> | |
11 | #include <asm/fixmap.h> | |
12 | #include <asm/apicdef.h> | |
13 | #include <linux/kernel.h> | |
14 | #include <linux/smp.h> | |
15 | #include <linux/init.h> | |
16 | #include <linux/dmi.h> | |
17 | #include <asm/mach-bigsmp/mach_apic.h> | |
18 | #include <asm/mach-bigsmp/mach_apicdef.h> | |
19 | #include <asm/mach-bigsmp/mach_ipi.h> | |
20 | #include <asm/mach-default/mach_mpparse.h> | |
21 | ||
22 | static int dmi_bigsmp; /* can be set by dmi scanners */ | |
23 | ||
1855256c | 24 | static int hp_ht_bigsmp(const struct dmi_system_id *d) |
1da177e4 | 25 | { |
1da177e4 LT |
26 | printk(KERN_NOTICE "%s detected: force use of apic=bigsmp\n", d->ident); |
27 | dmi_bigsmp = 1; | |
1da177e4 LT |
28 | return 0; |
29 | } | |
30 | ||
31 | ||
1855256c | 32 | static const struct dmi_system_id bigsmp_dmi_table[] = { |
637cba02 PC |
33 | { hp_ht_bigsmp, "HP ProLiant DL760 G2", |
34 | { DMI_MATCH(DMI_BIOS_VENDOR, "HP"), | |
35 | DMI_MATCH(DMI_BIOS_VERSION, "P44-"),} | |
36 | }, | |
37 | ||
38 | { hp_ht_bigsmp, "HP ProLiant DL740", | |
39 | { DMI_MATCH(DMI_BIOS_VENDOR, "HP"), | |
40 | DMI_MATCH(DMI_BIOS_VERSION, "P47-"),} | |
41 | }, | |
1da177e4 LT |
42 | { } |
43 | }; | |
44 | ||
45 | ||
af669c97 | 46 | static int probe_bigsmp(void) |
637cba02 | 47 | { |
911a62d4 | 48 | if (def_to_bigsmp) |
e0da3364 | 49 | dmi_bigsmp = 1; |
911a62d4 VP |
50 | else |
51 | dmi_check_system(bigsmp_dmi_table); | |
637cba02 PC |
52 | return dmi_bigsmp; |
53 | } | |
1da177e4 | 54 | |
637cba02 | 55 | struct genapic apic_bigsmp = APIC_INIT("bigsmp", probe_bigsmp); |