diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/arm/plat-versatile/localtimer.c | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'arch/arm/plat-versatile/localtimer.c')
| -rw-r--r-- | arch/arm/plat-versatile/localtimer.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/plat-versatile/localtimer.c b/arch/arm/plat-versatile/localtimer.c new file mode 100644 index 00000000000..0fb3961999b --- /dev/null +++ b/arch/arm/plat-versatile/localtimer.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/plat-versatile/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> | ||
| 12 | #include <linux/smp.h> | ||
| 13 | #include <linux/clockchips.h> | ||
| 14 | |||
| 15 | #include <asm/smp_twd.h> | ||
| 16 | #include <asm/localtimer.h> | ||
| 17 | #include <mach/irqs.h> | ||
| 18 | |||
| 19 | /* | ||
| 20 | * Setup the local clock events for a CPU. | ||
| 21 | */ | ||
| 22 | int __cpuinit local_timer_setup(struct clock_event_device *evt) | ||
| 23 | { | ||
| 24 | evt->irq = IRQ_LOCALTIMER; | ||
| 25 | twd_timer_setup(evt); | ||
| 26 | return 0; | ||
| 27 | } | ||
