diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-10-27 04:12:08 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-12-16 08:08:17 -0500 |
commit | b71a3b2944223de30a9744d35f93625d1298d692 (patch) | |
tree | c9722df2596697a56491cc68c83391b918771802 /drivers/iommu/irq_remapping.c | |
parent | a9786091126233cf1333d23999bf07bdd0818486 (diff) |
x86: irq_remapping: Use helpers to access irq_cfg data structure associated with IRQ
Use helpers to access irq_cfg data structure associated with IRQ,
instead of accessing irq_data->chip_data directly. Later we can
rewrite those helpers to support hierarchy irqdomain.
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: iommu@lists.linux-foundation.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: Joerg Roedel <joro@8bytes.org>
Link: http://lkml.kernel.org/r/1414397531-28254-18-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/iommu/irq_remapping.c')
-rw-r--r-- | drivers/iommu/irq_remapping.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c index 2c3f5ad01098..89c4846683be 100644 --- a/drivers/iommu/irq_remapping.c +++ b/drivers/iommu/irq_remapping.c | |||
@@ -298,7 +298,7 @@ static int set_remapped_irq_affinity(struct irq_data *data, | |||
298 | 298 | ||
299 | void free_remapped_irq(int irq) | 299 | void free_remapped_irq(int irq) |
300 | { | 300 | { |
301 | struct irq_cfg *cfg = irq_get_chip_data(irq); | 301 | struct irq_cfg *cfg = irq_cfg(irq); |
302 | 302 | ||
303 | if (!remap_ops || !remap_ops->free_irq) | 303 | if (!remap_ops || !remap_ops->free_irq) |
304 | return; | 304 | return; |
@@ -311,7 +311,7 @@ void compose_remapped_msi_msg(struct pci_dev *pdev, | |||
311 | unsigned int irq, unsigned int dest, | 311 | unsigned int irq, unsigned int dest, |
312 | struct msi_msg *msg, u8 hpet_id) | 312 | struct msi_msg *msg, u8 hpet_id) |
313 | { | 313 | { |
314 | struct irq_cfg *cfg = irq_get_chip_data(irq); | 314 | struct irq_cfg *cfg = irq_cfg(irq); |
315 | 315 | ||
316 | if (!irq_remapped(cfg)) | 316 | if (!irq_remapped(cfg)) |
317 | native_compose_msi_msg(pdev, irq, dest, msg, hpet_id); | 317 | native_compose_msi_msg(pdev, irq, dest, msg, hpet_id); |
@@ -364,7 +364,7 @@ static void ir_ack_apic_edge(struct irq_data *data) | |||
364 | static void ir_ack_apic_level(struct irq_data *data) | 364 | static void ir_ack_apic_level(struct irq_data *data) |
365 | { | 365 | { |
366 | ack_APIC_irq(); | 366 | ack_APIC_irq(); |
367 | eoi_ioapic_irq(data->irq, data->chip_data); | 367 | eoi_ioapic_irq(data->irq, irqd_cfg(data)); |
368 | } | 368 | } |
369 | 369 | ||
370 | static void ir_print_prefix(struct irq_data *data, struct seq_file *p) | 370 | static void ir_print_prefix(struct irq_data *data, struct seq_file *p) |