2005-11-09 10:50:29 +00:00
|
|
|
/*
|
|
|
|
* 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/init.h>
|
|
|
|
#include <linux/smp.h>
|
2008-02-04 16:30:57 +00:00
|
|
|
#include <linux/clockchips.h>
|
2005-11-09 10:50:29 +00:00
|
|
|
|
|
|
|
#include <asm/irq.h>
|
2009-05-16 11:14:21 +00:00
|
|
|
#include <asm/smp_twd.h>
|
|
|
|
#include <asm/localtimer.h>
|
2005-11-09 10:50:29 +00:00
|
|
|
|
2008-02-04 16:32:57 +00:00
|
|
|
/*
|
|
|
|
* Setup the local clock events for a CPU.
|
|
|
|
*/
|
2009-05-17 17:58:34 +00:00
|
|
|
void __cpuinit local_timer_setup(struct clock_event_device *evt)
|
2008-02-04 16:32:57 +00:00
|
|
|
{
|
2009-05-16 11:14:21 +00:00
|
|
|
evt->irq = IRQ_LOCALTIMER;
|
|
|
|
twd_timer_setup(evt);
|
2005-11-09 10:50:29 +00:00
|
|
|
}
|