diff options
author | Luka Perkov <luka@openwrt.org> | 2012-11-06 11:16:41 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2012-11-06 11:16:41 +0000 |
commit | 9a5c26d4ef75271c575e754ae47d190b221d0861 (patch) | |
tree | 5157882db91420d08f46d6cdf4bfb5f4346c03d8 /target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/localtimer.c | |
parent | 7404e59bbd591f1849dbd5d71aaab568f35d7434 (diff) | |
download | upstream-9a5c26d4ef75271c575e754ae47d190b221d0861.tar.gz upstream-9a5c26d4ef75271c575e754ae47d190b221d0861.tar.bz2 upstream-9a5c26d4ef75271c575e754ae47d190b221d0861.zip |
cns3xxx: use files directory
SVN-Revision: 34101
Diffstat (limited to 'target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/localtimer.c')
-rw-r--r-- | target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/localtimer.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/localtimer.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/localtimer.c new file mode 100644 index 0000000000..5e1111cf62 --- /dev/null +++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/localtimer.c @@ -0,0 +1,26 @@ +/* linux/arch/arm/mach-cns3xxx/localtimer.c + * + * Cloned from linux/arch/arm/mach-realview/localtimer.c + * + * Copyright (C) 2002 ARM Ltd. + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#include <linux/clockchips.h> + +#include <asm/irq.h> +#include <asm/localtimer.h> + +/* + * Setup the local clock events for a CPU. + */ +int __cpuinit local_timer_setup(struct clock_event_device *evt) +{ + evt->irq = IRQ_LOCALTIMER; + twd_timer_setup(evt); + return 0; +} |