aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/chip.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-10-01 09:17:14 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-04 07:40:24 -0400
commitbd151412263a67b5321e9dd1d5b4bf6d96fdebf3 (patch)
tree7571b3eaf7ebc2ef200fb00688543f00a451c5f9 /kernel/irq/chip.c
parent21e2b8c62cca8f7dbec0c8c131ca1637e4a5670f (diff)
genirq: Provide config option to disable deprecated code
This option covers now the old chip functions and the irq_desc data fields which are moving to struct irq_data. More stuff will follow. Pretty handy for testing a conversion, whether something broke or not. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r--kernel/irq/chip.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index f2c4d28c508a..323547983f15 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -324,6 +324,7 @@ static void default_shutdown(struct irq_data *data)
324 desc->status |= IRQ_MASKED; 324 desc->status |= IRQ_MASKED;
325} 325}
326 326
327#ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED
327/* Temporary migration helpers */ 328/* Temporary migration helpers */
328static void compat_irq_mask(struct irq_data *data) 329static void compat_irq_mask(struct irq_data *data)
329{ 330{
@@ -400,12 +401,14 @@ static void compat_bus_sync_unlock(struct irq_data *data)
400{ 401{
401 data->chip->bus_sync_unlock(data->irq); 402 data->chip->bus_sync_unlock(data->irq);
402} 403}
404#endif
403 405
404/* 406/*
405 * Fixup enable/disable function pointers 407 * Fixup enable/disable function pointers
406 */ 408 */
407void irq_chip_set_defaults(struct irq_chip *chip) 409void irq_chip_set_defaults(struct irq_chip *chip)
408{ 410{
411#ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED
409 /* 412 /*
410 * Compat fixup functions need to be before we set the 413 * Compat fixup functions need to be before we set the
411 * defaults for enable/disable/startup/shutdown 414 * defaults for enable/disable/startup/shutdown
@@ -418,7 +421,7 @@ void irq_chip_set_defaults(struct irq_chip *chip)
418 chip->irq_shutdown = compat_irq_shutdown; 421 chip->irq_shutdown = compat_irq_shutdown;
419 if (chip->startup) 422 if (chip->startup)
420 chip->irq_startup = compat_irq_startup; 423 chip->irq_startup = compat_irq_startup;
421 424#endif
422 /* 425 /*
423 * The real defaults 426 * The real defaults
424 */ 427 */
@@ -437,6 +440,8 @@ void irq_chip_set_defaults(struct irq_chip *chip)
437 if (!chip->irq_shutdown) 440 if (!chip->irq_shutdown)
438 chip->irq_shutdown = chip->irq_disable != default_disable ? 441 chip->irq_shutdown = chip->irq_disable != default_disable ?
439 chip->irq_disable : default_shutdown; 442 chip->irq_disable : default_shutdown;
443
444#ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED
440 if (!chip->end) 445 if (!chip->end)
441 chip->end = dummy_irq_chip.end; 446 chip->end = dummy_irq_chip.end;
442 447
@@ -465,6 +470,7 @@ void irq_chip_set_defaults(struct irq_chip *chip)
465 chip->irq_set_wake = compat_irq_set_wake; 470 chip->irq_set_wake = compat_irq_set_wake;
466 if (chip->retrigger) 471 if (chip->retrigger)
467 chip->irq_retrigger = compat_irq_retrigger; 472 chip->irq_retrigger = compat_irq_retrigger;
473#endif
468} 474}
469 475
470static inline void mask_ack_irq(struct irq_desc *desc) 476static inline void mask_ack_irq(struct irq_desc *desc)