ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-rpc / time.h
1 /*
2  *  linux/include/asm-arm/arch-rpc/time.h
3  *
4  *  Copyright (C) 1996-2000 Russell King.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Changelog:
11  *   24-Sep-1996 RMK    Created
12  *   10-Oct-1996 RMK    Brought up to date with arch-sa110eval
13  *   04-Dec-1997 RMK    Updated for new arch/arm/time.c
14  */
15 extern void ioctime_init(void);
16
17 static irqreturn_t
18 timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
19 {
20         do_timer(regs);
21         do_set_rtc();
22         do_profile(regs);
23
24         return IRQ_HANDLED;
25 }
26
27 /*
28  * Set up timer interrupt.
29  */
30 void __init time_init(void)
31 {
32         ioctime_init();
33
34         timer_irq.handler = timer_interrupt;
35
36         setup_irq(IRQ_TIMER, &timer_irq);
37 }