summaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 00:14:11 +0100
committerIngo Molnar <mingo@elte.hu>2009-01-28 23:20:06 +0100
commitc8d46cf06dc2e3a8f57a350eb9f9b19fd7f2ffe5 (patch)
treefe5ceac244165e5726f310027588cf6e1b6e60e6 /arch/x86/mach-generic
parent6781d948cc05b02df915650f2eb49550a1631df9 (diff)
downloadtalos-op-linux-c8d46cf06dc2e3a8f57a350eb9f9b19fd7f2ffe5.tar.gz
talos-op-linux-c8d46cf06dc2e3a8f57a350eb9f9b19fd7f2ffe5.zip
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')
-rw-r--r--arch/x86/mach-generic/es7000.c12
-rw-r--r--arch/x86/mach-generic/probe.c24
2 files changed, 18 insertions, 18 deletions
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c
index c2ded1448024..2f4f4a6e39b3 100644
--- a/arch/x86/mach-generic/es7000.c
+++ b/arch/x86/mach-generic/es7000.c
@@ -20,14 +20,14 @@
void __init es7000_update_genapic_to_cluster(void)
{
- genapic->target_cpus = target_cpus_cluster;
- genapic->int_delivery_mode = INT_DELIVERY_MODE_CLUSTER;
- genapic->int_dest_mode = INT_DEST_MODE_CLUSTER;
- genapic->no_balance_irq = NO_BALANCE_IRQ_CLUSTER;
+ apic->target_cpus = target_cpus_cluster;
+ apic->int_delivery_mode = INT_DELIVERY_MODE_CLUSTER;
+ apic->int_dest_mode = INT_DEST_MODE_CLUSTER;
+ apic->no_balance_irq = NO_BALANCE_IRQ_CLUSTER;
- genapic->init_apic_ldr = init_apic_ldr_cluster;
+ apic->init_apic_ldr = init_apic_ldr_cluster;
- genapic->cpu_mask_to_apicid = cpu_mask_to_apicid_cluster;
+ apic->cpu_mask_to_apicid = cpu_mask_to_apicid_cluster;
}
static int probe_es7000(void)
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;
extern struct genapic apic_es7000;
extern struct genapic apic_default;
-struct genapic *genapic = &apic_default;
+struct genapic *apic = &apic_default;
static struct genapic *apic_probe[] __initdata = {
#ifdef CONFIG_X86_NUMAQ
@@ -52,7 +52,7 @@ static int __init parse_apic(char *arg)
for (i = 0; apic_probe[i]; i++) {
if (!strcmp(apic_probe[i]->name, arg)) {
- genapic = apic_probe[i];
+ apic = apic_probe[i];
cmdline_apic = 1;
return 0;
}
@@ -76,13 +76,13 @@ void __init generic_bigsmp_probe(void)
* - we find more than 8 CPUs in acpi LAPIC listing with xAPIC support
*/
- if (!cmdline_apic && genapic == &apic_default) {
+ if (!cmdline_apic && apic == &apic_default) {
if (apic_bigsmp.probe()) {
- genapic = &apic_bigsmp;
+ apic = &apic_bigsmp;
if (x86_quirks->update_genapic)
x86_quirks->update_genapic();
printk(KERN_INFO "Overriding APIC driver with %s\n",
- genapic->name);
+ apic->name);
}
}
#endif
@@ -94,7 +94,7 @@ void __init generic_apic_probe(void)
int i;
for (i = 0; apic_probe[i]; i++) {
if (apic_probe[i]->probe()) {
- genapic = apic_probe[i];
+ apic = apic_probe[i];
break;
}
}
@@ -105,7 +105,7 @@ void __init generic_apic_probe(void)
if (x86_quirks->update_genapic)
x86_quirks->update_genapic();
}
- printk(KERN_INFO "Using APIC driver %s\n", genapic->name);
+ printk(KERN_INFO "Using APIC driver %s\n", apic->name);
}
/* 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)
for (i = 0; apic_probe[i]; ++i) {
if (apic_probe[i]->mps_oem_check(mpc, oem, productid)) {
if (!cmdline_apic) {
- genapic = apic_probe[i];
+ apic = apic_probe[i];
if (x86_quirks->update_genapic)
x86_quirks->update_genapic();
printk(KERN_INFO "Switched to APIC driver `%s'.\n",
- genapic->name);
+ apic->name);
}
return 1;
}
@@ -134,11 +134,11 @@ int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
for (i = 0; apic_probe[i]; ++i) {
if (apic_probe[i]->acpi_madt_oem_check(oem_id, oem_table_id)) {
if (!cmdline_apic) {
- genapic = apic_probe[i];
+ apic = apic_probe[i];
if (x86_quirks->update_genapic)
x86_quirks->update_genapic();
printk(KERN_INFO "Switched to APIC driver `%s'.\n",
- genapic->name);
+ apic->name);
}
return 1;
}
@@ -148,5 +148,5 @@ int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
int hard_smp_processor_id(void)
{
- return genapic->get_apic_id(*(unsigned long *)(APIC_BASE+APIC_ID));
+ return apic->get_apic_id(*(unsigned long *)(APIC_BASE+APIC_ID));
}
OpenPOWER on IntegriCloud