localtimer.c 618 B

1234567891011121314151617181920212223242526
  1. /* linux/arch/arm/mach-cns3xxx/localtimer.c
  2. *
  3. * Cloned from linux/arch/arm/mach-realview/localtimer.c
  4. *
  5. * Copyright (C) 2002 ARM Ltd.
  6. * 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/clockchips.h>
  13. #include <asm/irq.h>
  14. #include <asm/localtimer.h>
  15. /*
  16. * Setup the local clock events for a CPU.
  17. */
  18. int __cpuinit local_timer_setup(struct clock_event_device *evt)
  19. {
  20. evt->irq = IRQ_LOCALTIMER;
  21. twd_timer_setup(evt);
  22. return 0;
  23. }