Kukjin Kim | 3c31336 | 2011-02-14 16:13:27 +0900 | [diff] [blame] | 1 | /* linux/arch/arm/mach-exynos4/localtimer.c |
Changhwan Youn | cfca3a6 | 2010-07-26 21:13:08 +0900 | [diff] [blame] | 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 | |
| 13 | #include <linux/clockchips.h> |
| 14 | |
| 15 | #include <asm/irq.h> |
| 16 | #include <asm/localtimer.h> |
| 17 | |
| 18 | /* |
| 19 | * Setup the local clock events for a CPU. |
| 20 | */ |
Santosh Shilimkar | af90f10 | 2011-02-23 18:53:15 +0100 | [diff] [blame] | 21 | int __cpuinit local_timer_setup(struct clock_event_device *evt) |
Changhwan Youn | cfca3a6 | 2010-07-26 21:13:08 +0900 | [diff] [blame] | 22 | { |
| 23 | evt->irq = IRQ_LOCALTIMER; |
| 24 | twd_timer_setup(evt); |
Santosh Shilimkar | af90f10 | 2011-02-23 18:53:15 +0100 | [diff] [blame] | 25 | return 0; |
Changhwan Youn | cfca3a6 | 2010-07-26 21:13:08 +0900 | [diff] [blame] | 26 | } |