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