diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-18 12:52:52 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2011-03-18 12:52:52 -0400 |
commit | 3ba65467f046fb58ae6fd93793fbe21119a8d875 (patch) | |
tree | 99d83b942eeee49983a37e99380d84632d7878c5 /arch/mn10300 | |
parent | b023ba598c86747ded27d549f0225cf384c2e132 (diff) |
MN10300: Convert ipi irq_chip to new functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300')
-rw-r--r-- | arch/mn10300/kernel/smp.c | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/arch/mn10300/kernel/smp.c b/arch/mn10300/kernel/smp.c index 0dcd1c686ba8..1ebb79f1650d 100644 --- a/arch/mn10300/kernel/smp.c +++ b/arch/mn10300/kernel/smp.c | |||
@@ -113,15 +113,17 @@ static void init_ipi(void); | |||
113 | */ | 113 | */ |
114 | static void mn10300_ipi_disable(unsigned int irq); | 114 | static void mn10300_ipi_disable(unsigned int irq); |
115 | static void mn10300_ipi_enable(unsigned int irq); | 115 | static void mn10300_ipi_enable(unsigned int irq); |
116 | static void mn10300_ipi_ack(unsigned int irq); | 116 | static void mn10300_ipi_chip_disable(struct irq_data *d); |
117 | static void mn10300_ipi_nop(unsigned int irq); | 117 | static void mn10300_ipi_chip_enable(struct irq_data *d); |
118 | static void mn10300_ipi_ack(struct irq_data *d); | ||
119 | static void mn10300_ipi_nop(struct irq_data *d); | ||
118 | 120 | ||
119 | static struct irq_chip mn10300_ipi_type = { | 121 | static struct irq_chip mn10300_ipi_type = { |
120 | .name = "cpu_ipi", | 122 | .name = "cpu_ipi", |
121 | .disable = mn10300_ipi_disable, | 123 | .irq_disable = mn10300_ipi_chip_disable, |
122 | .enable = mn10300_ipi_enable, | 124 | .irq_enable = mn10300_ipi_chip_enable, |
123 | .ack = mn10300_ipi_ack, | 125 | .irq_ack = mn10300_ipi_ack, |
124 | .eoi = mn10300_ipi_nop | 126 | .irq_eoi = mn10300_ipi_nop |
125 | }; | 127 | }; |
126 | 128 | ||
127 | static irqreturn_t smp_reschedule_interrupt(int irq, void *dev_id); | 129 | static irqreturn_t smp_reschedule_interrupt(int irq, void *dev_id); |
@@ -236,6 +238,11 @@ static void mn10300_ipi_enable(unsigned int irq) | |||
236 | arch_local_irq_restore(flags); | 238 | arch_local_irq_restore(flags); |
237 | } | 239 | } |
238 | 240 | ||
241 | static void mn10300_ipi_chip_enable(struct irq_data *d) | ||
242 | { | ||
243 | mn10300_ipi_enable(d->irq); | ||
244 | } | ||
245 | |||
239 | /** | 246 | /** |
240 | * mn10300_ipi_disable - Disable an IPI | 247 | * mn10300_ipi_disable - Disable an IPI |
241 | * @irq: The IPI to be disabled. | 248 | * @irq: The IPI to be disabled. |
@@ -254,6 +261,12 @@ static void mn10300_ipi_disable(unsigned int irq) | |||
254 | arch_local_irq_restore(flags); | 261 | arch_local_irq_restore(flags); |
255 | } | 262 | } |
256 | 263 | ||
264 | static void mn10300_ipi_chip_disable(struct irq_data *d) | ||
265 | { | ||
266 | mn10300_ipi_disable(d->irq); | ||
267 | } | ||
268 | |||
269 | |||
257 | /** | 270 | /** |
258 | * mn10300_ipi_ack - Acknowledge an IPI interrupt in the PIC | 271 | * mn10300_ipi_ack - Acknowledge an IPI interrupt in the PIC |
259 | * @irq: The IPI to be acknowledged. | 272 | * @irq: The IPI to be acknowledged. |
@@ -261,8 +274,9 @@ static void mn10300_ipi_disable(unsigned int irq) | |||
261 | * Clear the interrupt detection flag for the IPI on the appropriate interrupt | 274 | * Clear the interrupt detection flag for the IPI on the appropriate interrupt |
262 | * channel in the PIC. | 275 | * channel in the PIC. |
263 | */ | 276 | */ |
264 | static void mn10300_ipi_ack(unsigned int irq) | 277 | static void mn10300_ipi_ack(struct irq_data *d) |
265 | { | 278 | { |
279 | unsigned int irq = d->irq; | ||
266 | unsigned long flags; | 280 | unsigned long flags; |
267 | u16 tmp; | 281 | u16 tmp; |
268 | 282 | ||
@@ -276,7 +290,7 @@ static void mn10300_ipi_ack(unsigned int irq) | |||
276 | * mn10300_ipi_nop - Dummy IPI action | 290 | * mn10300_ipi_nop - Dummy IPI action |
277 | * @irq: The IPI to be acted upon. | 291 | * @irq: The IPI to be acted upon. |
278 | */ | 292 | */ |
279 | static void mn10300_ipi_nop(unsigned int irq) | 293 | static void mn10300_ipi_nop(struct irq_data *d) |
280 | { | 294 | { |
281 | } | 295 | } |
282 | 296 | ||