blob: 60b4e111f4596afbd6b1882ad0387f6fad7de45c [file] [log] [blame]
Russell King2a98beb2005-11-09 10:50:29 +00001/*
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 King2a98beb2005-11-09 10:50:29 +000012#include <linux/smp.h>
Catalin Marinasa8655e82008-02-04 17:30:57 +010013#include <linux/clockchips.h>
Russell King2a98beb2005-11-09 10:50:29 +000014
Russell King2a98beb2005-11-09 10:50:29 +000015#include <asm/irq.h>
Russell Kingf32f4ce2009-05-16 12:14:21 +010016#include <asm/smp_twd.h>
17#include <asm/localtimer.h>
Russell King2a98beb2005-11-09 10:50:29 +000018
Catalin Marinas93c29042008-02-04 17:32:57 +010019/*
20 * Setup the local clock events for a CPU.
21 */
Russell Kingbc282482009-05-17 18:58:34 +010022void __cpuinit local_timer_setup(struct clock_event_device *evt)
Catalin Marinas93c29042008-02-04 17:32:57 +010023{
Russell Kingf32f4ce2009-05-16 12:14:21 +010024 evt->irq = IRQ_LOCALTIMER;
25 twd_timer_setup(evt);
Russell King2a98beb2005-11-09 10:50:29 +000026}