Blackfin: try to simplify interrupt ifdef ugliness
Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Родитель
54536c5c6a
Коммит
cb191718fc
|
@ -1062,7 +1062,6 @@ int __init init_arch_irq(void)
|
||||||
#elif defined(CONFIG_BF538) || defined(CONFIG_BF539)
|
#elif defined(CONFIG_BF538) || defined(CONFIG_BF539)
|
||||||
case IRQ_PORTF_INTA:
|
case IRQ_PORTF_INTA:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
set_irq_chained_handler(irq,
|
set_irq_chained_handler(irq,
|
||||||
bfin_demux_gpio_irq);
|
bfin_demux_gpio_irq);
|
||||||
break;
|
break;
|
||||||
|
@ -1073,24 +1072,30 @@ int __init init_arch_irq(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
#ifdef CONFIG_TICKSOURCE_CORETMR
|
|
||||||
case IRQ_CORETMR:
|
|
||||||
#endif
|
|
||||||
case IRQ_SUPPLE_0:
|
case IRQ_SUPPLE_0:
|
||||||
case IRQ_SUPPLE_1:
|
case IRQ_SUPPLE_1:
|
||||||
set_irq_handler(irq, handle_percpu_irq);
|
set_irq_handler(irq, handle_percpu_irq);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_IPIPE
|
#ifdef CONFIG_TICKSOURCE_CORETMR
|
||||||
#ifndef CONFIG_TICKSOURCE_CORETMR
|
case IRQ_CORETMR:
|
||||||
|
# ifdef CONFIG_SMP
|
||||||
|
set_irq_handler(irq, handle_percpu_irq);
|
||||||
|
break;
|
||||||
|
# else
|
||||||
|
set_irq_handler(irq, handle_simple_irq);
|
||||||
|
break;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_TICKSOURCE_GPTMR0
|
||||||
case IRQ_TIMER0:
|
case IRQ_TIMER0:
|
||||||
set_irq_handler(irq, handle_simple_irq);
|
set_irq_handler(irq, handle_simple_irq);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case IRQ_CORETMR:
|
|
||||||
set_irq_handler(irq, handle_simple_irq);
|
#ifdef CONFIG_IPIPE
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
set_irq_handler(irq, handle_level_irq);
|
set_irq_handler(irq, handle_level_irq);
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче