diff options
| -rw-r--r-- | arch/x86/kernel/apic/htirq.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 10 | ||||
| -rw-r--r-- | arch/x86/kernel/apic/msi.c | 6 | ||||
| -rw-r--r-- | arch/x86/kernel/apic/vector.c | 6 | ||||
| -rw-r--r-- | arch/x86/platform/uv/uv_irq.c | 4 |
5 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/kernel/apic/htirq.c b/arch/x86/kernel/apic/htirq.c index a4980c5091f0..816f36e979ad 100644 --- a/arch/x86/kernel/apic/htirq.c +++ b/arch/x86/kernel/apic/htirq.c | |||
| @@ -39,7 +39,7 @@ static void target_ht_irq(unsigned int irq, unsigned int dest, u8 vector) | |||
| 39 | static int | 39 | static int |
| 40 | ht_set_affinity(struct irq_data *data, const struct cpumask *mask, bool force) | 40 | ht_set_affinity(struct irq_data *data, const struct cpumask *mask, bool force) |
| 41 | { | 41 | { |
| 42 | struct irq_cfg *cfg = data->chip_data; | 42 | struct irq_cfg *cfg = irqd_cfg(data); |
| 43 | unsigned int dest; | 43 | unsigned int dest; |
| 44 | int ret; | 44 | int ret; |
| 45 | 45 | ||
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 2619cbe88d9f..3f5f60406ab1 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
| @@ -501,7 +501,7 @@ static void mask_ioapic(struct irq_cfg *cfg) | |||
| 501 | 501 | ||
| 502 | static void mask_ioapic_irq(struct irq_data *data) | 502 | static void mask_ioapic_irq(struct irq_data *data) |
| 503 | { | 503 | { |
| 504 | mask_ioapic(data->chip_data); | 504 | mask_ioapic(irqd_cfg(data)); |
| 505 | } | 505 | } |
| 506 | 506 | ||
| 507 | static void __unmask_ioapic(struct irq_cfg *cfg) | 507 | static void __unmask_ioapic(struct irq_cfg *cfg) |
| @@ -520,7 +520,7 @@ static void unmask_ioapic(struct irq_cfg *cfg) | |||
| 520 | 520 | ||
| 521 | static void unmask_ioapic_irq(struct irq_data *data) | 521 | static void unmask_ioapic_irq(struct irq_data *data) |
| 522 | { | 522 | { |
| 523 | unmask_ioapic(data->chip_data); | 523 | unmask_ioapic(irqd_cfg(data)); |
| 524 | } | 524 | } |
| 525 | 525 | ||
| 526 | /* | 526 | /* |
| @@ -1801,7 +1801,7 @@ static unsigned int startup_ioapic_irq(struct irq_data *data) | |||
| 1801 | if (legacy_pic->irq_pending(irq)) | 1801 | if (legacy_pic->irq_pending(irq)) |
| 1802 | was_pending = 1; | 1802 | was_pending = 1; |
| 1803 | } | 1803 | } |
| 1804 | __unmask_ioapic(data->chip_data); | 1804 | __unmask_ioapic(irqd_cfg(data)); |
| 1805 | raw_spin_unlock_irqrestore(&ioapic_lock, flags); | 1805 | raw_spin_unlock_irqrestore(&ioapic_lock, flags); |
| 1806 | 1806 | ||
| 1807 | return was_pending; | 1807 | return was_pending; |
| @@ -1852,7 +1852,7 @@ int native_ioapic_set_affinity(struct irq_data *data, | |||
| 1852 | if (!ret) { | 1852 | if (!ret) { |
| 1853 | /* Only the high 8 bits are valid. */ | 1853 | /* Only the high 8 bits are valid. */ |
| 1854 | dest = SET_APIC_LOGICAL_ID(dest); | 1854 | dest = SET_APIC_LOGICAL_ID(dest); |
| 1855 | __target_IO_APIC_irq(irq, dest, data->chip_data); | 1855 | __target_IO_APIC_irq(irq, dest, irqd_cfg(data)); |
| 1856 | ret = IRQ_SET_MASK_OK_NOCOPY; | 1856 | ret = IRQ_SET_MASK_OK_NOCOPY; |
| 1857 | } | 1857 | } |
| 1858 | raw_spin_unlock_irqrestore(&ioapic_lock, flags); | 1858 | raw_spin_unlock_irqrestore(&ioapic_lock, flags); |
| @@ -1943,7 +1943,7 @@ static inline void ioapic_irqd_unmask(struct irq_data *data, | |||
| 1943 | 1943 | ||
| 1944 | static void ack_ioapic_level(struct irq_data *data) | 1944 | static void ack_ioapic_level(struct irq_data *data) |
| 1945 | { | 1945 | { |
| 1946 | struct irq_cfg *cfg = data->chip_data; | 1946 | struct irq_cfg *cfg = irqd_cfg(data); |
| 1947 | int i, irq = data->irq; | 1947 | int i, irq = data->irq; |
| 1948 | unsigned long v; | 1948 | unsigned long v; |
| 1949 | bool masked; | 1949 | bool masked; |
diff --git a/arch/x86/kernel/apic/msi.c b/arch/x86/kernel/apic/msi.c index ddb28f1dab4d..d6ba2d660dc5 100644 --- a/arch/x86/kernel/apic/msi.c +++ b/arch/x86/kernel/apic/msi.c | |||
| @@ -78,7 +78,7 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq, | |||
| 78 | static int | 78 | static int |
| 79 | msi_set_affinity(struct irq_data *data, const struct cpumask *mask, bool force) | 79 | msi_set_affinity(struct irq_data *data, const struct cpumask *mask, bool force) |
| 80 | { | 80 | { |
| 81 | struct irq_cfg *cfg = data->chip_data; | 81 | struct irq_cfg *cfg = irqd_cfg(data); |
| 82 | struct msi_msg msg; | 82 | struct msi_msg msg; |
| 83 | unsigned int dest; | 83 | unsigned int dest; |
| 84 | int ret; | 84 | int ret; |
| @@ -180,7 +180,7 @@ static int | |||
| 180 | dmar_msi_set_affinity(struct irq_data *data, const struct cpumask *mask, | 180 | dmar_msi_set_affinity(struct irq_data *data, const struct cpumask *mask, |
| 181 | bool force) | 181 | bool force) |
| 182 | { | 182 | { |
| 183 | struct irq_cfg *cfg = data->chip_data; | 183 | struct irq_cfg *cfg = irqd_cfg(data); |
| 184 | unsigned int dest, irq = data->irq; | 184 | unsigned int dest, irq = data->irq; |
| 185 | struct msi_msg msg; | 185 | struct msi_msg msg; |
| 186 | int ret; | 186 | int ret; |
| @@ -235,7 +235,7 @@ int arch_setup_dmar_msi(unsigned int irq) | |||
| 235 | static int hpet_msi_set_affinity(struct irq_data *data, | 235 | static int hpet_msi_set_affinity(struct irq_data *data, |
| 236 | const struct cpumask *mask, bool force) | 236 | const struct cpumask *mask, bool force) |
| 237 | { | 237 | { |
| 238 | struct irq_cfg *cfg = data->chip_data; | 238 | struct irq_cfg *cfg = irqd_cfg(data); |
| 239 | struct msi_msg msg; | 239 | struct msi_msg msg; |
| 240 | unsigned int dest; | 240 | unsigned int dest; |
| 241 | int ret; | 241 | int ret; |
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index 19fcb57f86d5..6cedd7914581 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c | |||
| @@ -321,7 +321,7 @@ void setup_vector_irq(int cpu) | |||
| 321 | 321 | ||
| 322 | int apic_retrigger_irq(struct irq_data *data) | 322 | int apic_retrigger_irq(struct irq_data *data) |
| 323 | { | 323 | { |
| 324 | struct irq_cfg *cfg = data->chip_data; | 324 | struct irq_cfg *cfg = irqd_cfg(data); |
| 325 | unsigned long flags; | 325 | unsigned long flags; |
| 326 | int cpu; | 326 | int cpu; |
| 327 | 327 | ||
| @@ -335,7 +335,7 @@ int apic_retrigger_irq(struct irq_data *data) | |||
| 335 | 335 | ||
| 336 | void apic_ack_edge(struct irq_data *data) | 336 | void apic_ack_edge(struct irq_data *data) |
| 337 | { | 337 | { |
| 338 | irq_complete_move(data->chip_data); | 338 | irq_complete_move(irqd_cfg(data)); |
| 339 | irq_move_irq(data); | 339 | irq_move_irq(data); |
| 340 | ack_APIC_irq(); | 340 | ack_APIC_irq(); |
| 341 | } | 341 | } |
| @@ -348,7 +348,7 @@ void apic_ack_edge(struct irq_data *data) | |||
| 348 | int apic_set_affinity(struct irq_data *data, const struct cpumask *mask, | 348 | int apic_set_affinity(struct irq_data *data, const struct cpumask *mask, |
| 349 | unsigned int *dest_id) | 349 | unsigned int *dest_id) |
| 350 | { | 350 | { |
| 351 | struct irq_cfg *cfg = data->chip_data; | 351 | struct irq_cfg *cfg = irqd_cfg(data); |
| 352 | unsigned int irq = data->irq; | 352 | unsigned int irq = data->irq; |
| 353 | int err; | 353 | int err; |
| 354 | 354 | ||
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; |
