irq-gic.c 590 B

1234567891011121314151617181920212223242526
  1. /*
  2. * This program is free software; you can redistribute it and/or modify it
  3. * under the terms of the GNU General Public License version 2 as published
  4. * by the Free Software Foundation.
  5. *
  6. * Copyright (C) 2015 Nikolay Martynov <mar.kolya@gmail.com>
  7. * Copyright (C) 2015 John Crispin <john@phrozen.org>
  8. */
  9. #include <linux/init.h>
  10. #include <linux/of.h>
  11. #include <linux/irqchip.h>
  12. #include <linux/irqchip/mips-gic.h>
  13. int get_c0_perfcount_int(void)
  14. {
  15. return gic_get_c0_perfcount_int();
  16. }
  17. EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
  18. void __init arch_init_irq(void)
  19. {
  20. irqchip_init();
  21. }