irq.c 937 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2007-2009 Michal Simek <[email protected]>
  3. * Copyright (C) 2007-2009 PetaLogix
  4. * Copyright (C) 2006 Atmark Techno, Inc.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/init.h>
  11. #include <linux/ftrace.h>
  12. #include <linux/kernel.h>
  13. #include <linux/hardirq.h>
  14. #include <linux/interrupt.h>
  15. #include <linux/irqflags.h>
  16. #include <linux/seq_file.h>
  17. #include <linux/kernel_stat.h>
  18. #include <linux/irq.h>
  19. #include <linux/irqchip.h>
  20. #include <linux/of_irq.h>
  21. void __irq_entry do_IRQ(struct pt_regs *regs)
  22. {
  23. struct pt_regs *old_regs = set_irq_regs(regs);
  24. trace_hardirqs_off();
  25. irq_enter();
  26. handle_arch_irq(regs);
  27. irq_exit();
  28. set_irq_regs(old_regs);
  29. trace_hardirqs_on();
  30. }
  31. void __init init_IRQ(void)
  32. {
  33. /* process the entire interrupt tree in one go */
  34. irqchip_init();
  35. }