aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic/probe.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-27 18:14:11 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:06 -0500
commitc8d46cf06dc2e3a8f57a350eb9f9b19fd7f2ffe5 (patch)
treefe5ceac244165e5726f310027588cf6e1b6e60e6 /arch/x86/mach-generic/probe.c
parent6781d948cc05b02df915650f2eb49550a1631df9 (diff)
x86: rename 'genapic' to 'apic'
Rename genapic-> to apic-> references because in a future chagne we'll open-code all the indirect calls (instead of obscuring them via macros), so we want this reference to be as short as possible. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-generic/probe.c')
-rw-r--r--arch/x86/mach-generic/probe.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/x86/mach-generic/probe.c b/arch/x86/mach-generic/probe.c
index 15a38daef1a8..82bf0f520fb6 100644
--- a/arch/x86/mach-generic/probe.c
+++ b/arch/x86/mach-generic/probe.c
@@ -23,7 +23,7 @@ extern struct genapic apic_bigsmp;
23extern struct genapic apic_es7000; 23extern struct genapic apic_es7000;
24extern struct genapic apic_default; 24extern struct genapic apic_default;
25 25
26struct genapic *genapic = &apic_default; 26struct genapic *apic = &apic_default;
27 27
28static struct genapic *apic_probe[] __initdata = { 28static struct genapic *apic_probe[] __initdata = {
29#ifdef CONFIG_X86_NUMAQ 29#ifdef CONFIG_X86_NUMAQ
@@ -52,7 +52,7 @@ static int __init parse_apic(char *arg)
52 52
53 for (i = 0; apic_probe[i]; i++) { 53 for (i = 0; apic_probe[i]; i++) {
54 if (!strcmp(apic_probe[i]->name, arg)) { 54 if (!strcmp(apic_probe[i]->name, arg)) {
55 genapic = apic_probe[i]; 55 apic = apic_probe[i];
56 cmdline_apic = 1; 56 cmdline_apic = 1;
57 return 0; 57 return 0;
58 } 58 }
@@ -76,13 +76,13 @@ void __init generic_bigsmp_probe(void)
76 * - we find more than 8 CPUs in acpi LAPIC listing with xAPIC support 76 * - we find more than 8 CPUs in acpi LAPIC listing with xAPIC support
77 */ 77 */
78 78
79 if (!cmdline_apic && genapic == &apic_default) { 79 if (!cmdline_apic && apic == &apic_default) {
80 if (apic_bigsmp.probe()) { 80 if (apic_bigsmp.probe()) {
81 genapic = &apic_bigsmp; 81 apic = &apic_bigsmp;
82 if (x86_quirks->update_genapic) 82 if (x86_quirks->update_genapic)
83 x86_quirks->update_genapic(); 83 x86_quirks->update_genapic();
84 printk(KERN_INFO "Overriding APIC driver with %s\n", 84 printk(KERN_INFO "Overriding APIC driver with %s\n",
85 genapic->name); 85 apic->name);
86 } 86 }
87 } 87 }
88#endif 88#endif
@@ -94,7 +94,7 @@ void __init generic_apic_probe(void)
94 int i; 94 int i;
95 for (i = 0; apic_probe[i]; i++) { 95 for (i = 0; apic_probe[i]; i++) {
96 if (apic_probe[i]->probe()) { 96 if (apic_probe[i]->probe()) {
97 genapic = apic_probe[i]; 97 apic = apic_probe[i];
98 break; 98 break;
99 } 99 }
100 } 100 }
@@ -105,7 +105,7 @@ void __init generic_apic_probe(void)
105 if (x86_quirks->update_genapic) 105 if (x86_quirks->update_genapic)
106 x86_quirks->update_genapic(); 106 x86_quirks->update_genapic();
107 } 107 }
108 printk(KERN_INFO "Using APIC driver %s\n", genapic->name); 108 printk(KERN_INFO "Using APIC driver %s\n", apic->name);
109} 109}
110 110
111/* These functions can switch the APIC even after the initial ->probe() */ 111/* These functions can switch the APIC even after the initial ->probe() */
@@ -116,11 +116,11 @@ int __init mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
116 for (i = 0; apic_probe[i]; ++i) { 116 for (i = 0; apic_probe[i]; ++i) {
117 if (apic_probe[i]->mps_oem_check(mpc, oem, productid)) { 117 if (apic_probe[i]->mps_oem_check(mpc, oem, productid)) {
118 if (!cmdline_apic) { 118 if (!cmdline_apic) {
119 genapic = apic_probe[i]; 119 apic = apic_probe[i];
120 if (x86_quirks->update_genapic) 120 if (x86_quirks->update_genapic)
121 x86_quirks->update_genapic(); 121 x86_quirks->update_genapic();
122 printk(KERN_INFO "Switched to APIC driver `%s'.\n", 122 printk(KERN_INFO "Switched to APIC driver `%s'.\n",
123 genapic->name); 123 apic->name);
124 } 124 }
125 return 1; 125 return 1;
126 } 126 }
@@ -134,11 +134,11 @@ int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
134 for (i = 0; apic_probe[i]; ++i) { 134 for (i = 0; apic_probe[i]; ++i) {
135 if (apic_probe[i]->acpi_madt_oem_check(oem_id, oem_table_id)) { 135 if (apic_probe[i]->acpi_madt_oem_check(oem_id, oem_table_id)) {
136 if (!cmdline_apic) { 136 if (!cmdline_apic) {
137 genapic = apic_probe[i]; 137 apic = apic_probe[i];
138 if (x86_quirks->update_genapic) 138 if (x86_quirks->update_genapic)
139 x86_quirks->update_genapic(); 139 x86_quirks->update_genapic();
140 printk(KERN_INFO "Switched to APIC driver `%s'.\n", 140 printk(KERN_INFO "Switched to APIC driver `%s'.\n",
141 genapic->name); 141 apic->name);
142 } 142 }
143 return 1; 143 return 1;
144 } 144 }
@@ -148,5 +148,5 @@ int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
148 148
149int hard_smp_processor_id(void) 149int hard_smp_processor_id(void)
150{ 150{
151 return genapic->get_apic_id(*(unsigned long *)(APIC_BASE+APIC_ID)); 151 return apic->get_apic_id(*(unsigned long *)(APIC_BASE+APIC_ID));
152} 152}