Disable NAPI by default (#1671)
[openwrt.git] / target / linux / ar7-2.6 / files / arch / mips / ar7 / time.c
1 /*
2 * $Id$
3 *
4 * Copyright (C) 2006, 2007 OpenWrt.org
5 *
6 * Carsten Langgaard, carstenl@mips.com
7 * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved.
8 *
9 * This program is free software; you can distribute it and/or modify it
10 * under the terms of the GNU General Public License (Version 2) as
11 * published by the Free Software Foundation.
12 *
13 * This program is distributed in the hope it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 * for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
21 *
22 * Setting up the clock on the MIPS boards.
23 */
24
25 #include <linux/types.h>
26 #include <linux/init.h>
27 #include <linux/kernel_stat.h>
28 #include <linux/sched.h>
29 #include <linux/spinlock.h>
30 #include <linux/interrupt.h>
31 #include <linux/time.h>
32 #include <linux/timex.h>
33 #include <linux/mc146818rtc.h>
34
35 #include <asm/mipsregs.h>
36 #include <asm/ptrace.h>
37 #include <asm/hardirq.h>
38 #include <asm/irq.h>
39 #include <asm/div64.h>
40 #include <asm/cpu.h>
41 #include <asm/time.h>
42 #include <asm/mc146818-time.h>
43 #include <asm/msc01_ic.h>
44
45 #include <asm/mips-boards/generic.h>
46 #include <asm/mips-boards/prom.h>
47 #include <asm/mips-boards/maltaint.h>
48 #include <asm/mc146818-time.h>
49 #include <asm/ar7/ar7.h>
50
51 void __init ar7_time_init(void)
52 {
53 mips_hpt_frequency = ar7_cpu_freq() / 2;
54 }
55
56 void __init plat_timer_setup(struct irqaction *irq)
57 {
58 setup_irq(7, irq);
59 }
This page took 0.04758 seconds and 5 git commands to generate.