Russell King | 2a98beb | 2005-11-09 10:50:29 +0000 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm/mach-realview/localtimer.c |
| 3 | * |
| 4 | * Copyright (C) 2002 ARM Ltd. |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | #include <linux/init.h> |
Russell King | 2a98beb | 2005-11-09 10:50:29 +0000 | [diff] [blame] | 12 | #include <linux/smp.h> |
Catalin Marinas | a8655e8 | 2008-02-04 17:30:57 +0100 | [diff] [blame] | 13 | #include <linux/clockchips.h> |
Russell King | 2a98beb | 2005-11-09 10:50:29 +0000 | [diff] [blame] | 14 | |
Russell King | 2a98beb | 2005-11-09 10:50:29 +0000 | [diff] [blame] | 15 | #include <asm/irq.h> |
Russell King | f32f4ce | 2009-05-16 12:14:21 +0100 | [diff] [blame] | 16 | #include <asm/smp_twd.h> |
| 17 | #include <asm/localtimer.h> |
Russell King | 2a98beb | 2005-11-09 10:50:29 +0000 | [diff] [blame] | 18 | |
Catalin Marinas | 93c2904 | 2008-02-04 17:32:57 +0100 | [diff] [blame] | 19 | /* |
| 20 | * Setup the local clock events for a CPU. |
| 21 | */ |
Russell King | bc28248 | 2009-05-17 18:58:34 +0100 | [diff] [blame] | 22 | void __cpuinit local_timer_setup(struct clock_event_device *evt) |
Catalin Marinas | 93c2904 | 2008-02-04 17:32:57 +0100 | [diff] [blame] | 23 | { |
Russell King | f32f4ce | 2009-05-16 12:14:21 +0100 | [diff] [blame] | 24 | evt->irq = IRQ_LOCALTIMER; |
| 25 | twd_timer_setup(evt); |
Russell King | 2a98beb | 2005-11-09 10:50:29 +0000 | [diff] [blame] | 26 | } |