x86, irq: Rename local APIC related functions in io_apic.c as apic_xxx()

Rename local APIC related functions in io_apic.c as apic_xxx() instead
of ioapic_xxx(), later they will be moved into separate file.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Grant Likely <grant.likely@linaro.org>
Link: http://lkml.kernel.org/r/1414397531-28254-7-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Jiang Liu 2014-10-27 16:11:57 +08:00 committed by Thomas Gleixner
parent 26011eee04
commit cb39288cd6
3 changed files with 24 additions and 24 deletions

View File

@ -141,8 +141,8 @@ static inline void send_cleanup_vector(struct irq_cfg *c) { }
#endif #endif
struct irq_data; struct irq_data;
int __ioapic_set_affinity(struct irq_data *, const struct cpumask *, int apic_set_affinity(struct irq_data *, const struct cpumask *,
unsigned int *dest_id); unsigned int *dest_id);
#endif /* CONFIG_X86_LOCAL_APIC */ #endif /* CONFIG_X86_LOCAL_APIC */
#ifdef CONFIG_X86_IO_APIC #ifdef CONFIG_X86_IO_APIC

View File

@ -2252,7 +2252,7 @@ static unsigned int startup_ioapic_irq(struct irq_data *data)
return was_pending; return was_pending;
} }
static int ioapic_retrigger_irq(struct irq_data *data) static int apic_retrigger_irq(struct irq_data *data)
{ {
struct irq_cfg *cfg = data->chip_data; struct irq_cfg *cfg = data->chip_data;
unsigned long flags; unsigned long flags;
@ -2407,8 +2407,8 @@ static void __target_IO_APIC_irq(unsigned int irq, unsigned int dest, struct irq
* ->cpu_mask_to_apicid of that in dest_id, or returns -1 and * ->cpu_mask_to_apicid of that in dest_id, or returns -1 and
* leaves data->affinity untouched. * leaves data->affinity untouched.
*/ */
int __ioapic_set_affinity(struct irq_data *data, const struct cpumask *mask, int apic_set_affinity(struct irq_data *data, const struct cpumask *mask,
unsigned int *dest_id) unsigned int *dest_id)
{ {
struct irq_cfg *cfg = data->chip_data; struct irq_cfg *cfg = data->chip_data;
unsigned int irq = data->irq; unsigned int irq = data->irq;
@ -2449,7 +2449,7 @@ int native_ioapic_set_affinity(struct irq_data *data,
return -EPERM; return -EPERM;
raw_spin_lock_irqsave(&ioapic_lock, flags); raw_spin_lock_irqsave(&ioapic_lock, flags);
ret = __ioapic_set_affinity(data, mask, &dest); ret = apic_set_affinity(data, mask, &dest);
if (!ret) { if (!ret) {
/* Only the high 8 bits are valid. */ /* Only the high 8 bits are valid. */
dest = SET_APIC_LOGICAL_ID(dest); dest = SET_APIC_LOGICAL_ID(dest);
@ -2460,7 +2460,7 @@ int native_ioapic_set_affinity(struct irq_data *data,
return ret; return ret;
} }
static void ack_apic_edge(struct irq_data *data) static void apic_ack_edge(struct irq_data *data)
{ {
irq_complete_move(data->chip_data); irq_complete_move(data->chip_data);
irq_move_irq(data); irq_move_irq(data);
@ -2549,7 +2549,7 @@ static inline void ioapic_irqd_unmask(struct irq_data *data,
} }
#endif #endif
static void ack_apic_level(struct irq_data *data) static void ack_ioapic_level(struct irq_data *data)
{ {
struct irq_cfg *cfg = data->chip_data; struct irq_cfg *cfg = data->chip_data;
int i, irq = data->irq; int i, irq = data->irq;
@ -2621,10 +2621,10 @@ static struct irq_chip ioapic_chip __read_mostly = {
.irq_startup = startup_ioapic_irq, .irq_startup = startup_ioapic_irq,
.irq_mask = mask_ioapic_irq, .irq_mask = mask_ioapic_irq,
.irq_unmask = unmask_ioapic_irq, .irq_unmask = unmask_ioapic_irq,
.irq_ack = ack_apic_edge, .irq_ack = apic_ack_edge,
.irq_eoi = ack_apic_level, .irq_eoi = ack_ioapic_level,
.irq_set_affinity = native_ioapic_set_affinity, .irq_set_affinity = native_ioapic_set_affinity,
.irq_retrigger = ioapic_retrigger_irq, .irq_retrigger = apic_retrigger_irq,
.flags = IRQCHIP_SKIP_SET_WAKE, .flags = IRQCHIP_SKIP_SET_WAKE,
}; };
@ -3159,7 +3159,7 @@ msi_set_affinity(struct irq_data *data, const struct cpumask *mask, bool force)
unsigned int dest; unsigned int dest;
int ret; int ret;
ret = __ioapic_set_affinity(data, mask, &dest); ret = apic_set_affinity(data, mask, &dest);
if (ret) if (ret)
return ret; return ret;
@ -3183,9 +3183,9 @@ static struct irq_chip msi_chip = {
.name = "PCI-MSI", .name = "PCI-MSI",
.irq_unmask = pci_msi_unmask_irq, .irq_unmask = pci_msi_unmask_irq,
.irq_mask = pci_msi_mask_irq, .irq_mask = pci_msi_mask_irq,
.irq_ack = ack_apic_edge, .irq_ack = apic_ack_edge,
.irq_set_affinity = msi_set_affinity, .irq_set_affinity = msi_set_affinity,
.irq_retrigger = ioapic_retrigger_irq, .irq_retrigger = apic_retrigger_irq,
.flags = IRQCHIP_SKIP_SET_WAKE, .flags = IRQCHIP_SKIP_SET_WAKE,
}; };
@ -3261,7 +3261,7 @@ dmar_msi_set_affinity(struct irq_data *data, const struct cpumask *mask,
struct msi_msg msg; struct msi_msg msg;
int ret; int ret;
ret = __ioapic_set_affinity(data, mask, &dest); ret = apic_set_affinity(data, mask, &dest);
if (ret) if (ret)
return ret; return ret;
@ -3282,9 +3282,9 @@ static struct irq_chip dmar_msi_type = {
.name = "DMAR_MSI", .name = "DMAR_MSI",
.irq_unmask = dmar_msi_unmask, .irq_unmask = dmar_msi_unmask,
.irq_mask = dmar_msi_mask, .irq_mask = dmar_msi_mask,
.irq_ack = ack_apic_edge, .irq_ack = apic_ack_edge,
.irq_set_affinity = dmar_msi_set_affinity, .irq_set_affinity = dmar_msi_set_affinity,
.irq_retrigger = ioapic_retrigger_irq, .irq_retrigger = apic_retrigger_irq,
.flags = IRQCHIP_SKIP_SET_WAKE, .flags = IRQCHIP_SKIP_SET_WAKE,
}; };
@ -3313,7 +3313,7 @@ static int hpet_msi_set_affinity(struct irq_data *data,
unsigned int dest; unsigned int dest;
int ret; int ret;
ret = __ioapic_set_affinity(data, mask, &dest); ret = apic_set_affinity(data, mask, &dest);
if (ret) if (ret)
return ret; return ret;
@ -3333,9 +3333,9 @@ static struct irq_chip hpet_msi_type = {
.name = "HPET_MSI", .name = "HPET_MSI",
.irq_unmask = hpet_msi_unmask, .irq_unmask = hpet_msi_unmask,
.irq_mask = hpet_msi_mask, .irq_mask = hpet_msi_mask,
.irq_ack = ack_apic_edge, .irq_ack = apic_ack_edge,
.irq_set_affinity = hpet_msi_set_affinity, .irq_set_affinity = hpet_msi_set_affinity,
.irq_retrigger = ioapic_retrigger_irq, .irq_retrigger = apic_retrigger_irq,
.flags = IRQCHIP_SKIP_SET_WAKE, .flags = IRQCHIP_SKIP_SET_WAKE,
}; };
@ -3385,7 +3385,7 @@ ht_set_affinity(struct irq_data *data, const struct cpumask *mask, bool force)
unsigned int dest; unsigned int dest;
int ret; int ret;
ret = __ioapic_set_affinity(data, mask, &dest); ret = apic_set_affinity(data, mask, &dest);
if (ret) if (ret)
return ret; return ret;
@ -3397,9 +3397,9 @@ static struct irq_chip ht_irq_chip = {
.name = "PCI-HT", .name = "PCI-HT",
.irq_mask = mask_ht_irq, .irq_mask = mask_ht_irq,
.irq_unmask = unmask_ht_irq, .irq_unmask = unmask_ht_irq,
.irq_ack = ack_apic_edge, .irq_ack = apic_ack_edge,
.irq_set_affinity = ht_set_affinity, .irq_set_affinity = ht_set_affinity,
.irq_retrigger = ioapic_retrigger_irq, .irq_retrigger = apic_retrigger_irq,
.flags = IRQCHIP_SKIP_SET_WAKE, .flags = IRQCHIP_SKIP_SET_WAKE,
}; };

View File

@ -204,7 +204,7 @@ uv_set_irq_affinity(struct irq_data *data, const struct cpumask *mask,
struct uv_IO_APIC_route_entry *entry; struct uv_IO_APIC_route_entry *entry;
int mmr_pnode; int mmr_pnode;
if (__ioapic_set_affinity(data, mask, &dest)) if (apic_set_affinity(data, mask, &dest))
return -1; return -1;
mmr_value = 0; mmr_value = 0;