localtimer.c 669 B

123456789101112131415161718192021222324252627
  1. /*
  2. * SMP support for R-Mobile / SH-Mobile - local timer portion
  3. *
  4. * Copyright (C) 2010 Magnus Damm
  5. *
  6. * Based on vexpress, Copyright (C) 2002 ARM Ltd, All Rights Reserved
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/smp.h>
  14. #include <linux/clockchips.h>
  15. #include <asm/smp_twd.h>
  16. #include <asm/localtimer.h>
  17. /*
  18. * Setup the local clock events for a CPU.
  19. */
  20. int __cpuinit local_timer_setup(struct clock_event_device *evt)
  21. {
  22. evt->irq = 29;
  23. twd_timer_setup(evt);
  24. return 0;
  25. }