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