diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-10-27 04:12:07 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-12-16 08:08:17 -0500 |
commit | a9786091126233cf1333d23999bf07bdd0818486 (patch) | |
tree | 4b08bda390871912d257973650bea3404e3dfe8f /arch/x86/platform | |
parent | 2f600025d38f8c4e7debdeae9b80b7df498c22be (diff) |
x86, irq: 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: 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: Grant Likely <grant.likely@linaro.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Link: http://lkml.kernel.org/r/1414397531-28254-17-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/uv/uv_irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c index 3e8fab740c1d..0ce673645432 100644 --- a/arch/x86/platform/uv/uv_irq.c +++ b/arch/x86/platform/uv/uv_irq.c | |||
@@ -131,7 +131,7 @@ arch_enable_uv_irq(char *irq_name, unsigned int irq, int cpu, int mmr_blade, | |||
131 | unsigned long mmr_offset, int limit) | 131 | unsigned long mmr_offset, int limit) |
132 | { | 132 | { |
133 | const struct cpumask *eligible_cpu = cpumask_of(cpu); | 133 | const struct cpumask *eligible_cpu = cpumask_of(cpu); |
134 | struct irq_cfg *cfg = irq_get_chip_data(irq); | 134 | struct irq_cfg *cfg = irq_cfg(irq); |
135 | unsigned long mmr_value; | 135 | unsigned long mmr_value; |
136 | struct uv_IO_APIC_route_entry *entry; | 136 | struct uv_IO_APIC_route_entry *entry; |
137 | int mmr_pnode, err; | 137 | int mmr_pnode, err; |
@@ -198,7 +198,7 @@ static int | |||
198 | uv_set_irq_affinity(struct irq_data *data, const struct cpumask *mask, | 198 | uv_set_irq_affinity(struct irq_data *data, const struct cpumask *mask, |
199 | bool force) | 199 | bool force) |
200 | { | 200 | { |
201 | struct irq_cfg *cfg = data->chip_data; | 201 | struct irq_cfg *cfg = irqd_cfg(data); |
202 | unsigned int dest; | 202 | unsigned int dest; |
203 | unsigned long mmr_value, mmr_offset; | 203 | unsigned long mmr_value, mmr_offset; |
204 | struct uv_IO_APIC_route_entry *entry; | 204 | struct uv_IO_APIC_route_entry *entry; |