irq.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2011-12 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. */
  9. #include <linux/interrupt.h>
  10. #include <linux/irqchip.h>
  11. #include <asm/mach_desc.h>
  12. #include <asm/smp.h>
  13. /*
  14. * Late Interrupt system init called from start_kernel for Boot CPU only
  15. *
  16. * Since slab must already be initialized, platforms can start doing any
  17. * needed request_irq( )s
  18. */
  19. void __init init_IRQ(void)
  20. {
  21. /*
  22. * process the entire interrupt tree in one go
  23. * Any external intc will be setup provided DT chains them
  24. * properly
  25. */
  26. irqchip_init();
  27. #ifdef CONFIG_SMP
  28. /* a SMP H/w block could do IPI IRQ request here */
  29. if (plat_smp_ops.init_per_cpu)
  30. plat_smp_ops.init_per_cpu(smp_processor_id());
  31. if (machine_desc->init_per_cpu)
  32. machine_desc->init_per_cpu(smp_processor_id());
  33. #endif
  34. }
  35. /*
  36. * "C" Entry point for any ARC ISR, called from low level vector handler
  37. * @irq is the vector number read from ICAUSE reg of on-chip intc
  38. */
  39. void arch_do_IRQ(unsigned int hwirq, struct pt_regs *regs)
  40. {
  41. handle_domain_irq(NULL, hwirq, regs);
  42. }