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