[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / arch / ia64 / sn / kernel / sn2 / timer.c
blobdeb9baf4d4735f8562f16726a2d49b0075aff293
1 /*
2 * linux/arch/ia64/sn/kernel/sn2/timer.c
4 * Copyright (C) 2003 Silicon Graphics, Inc.
5 * Copyright (C) 2003 Hewlett-Packard Co
6 * David Mosberger <davidm@hpl.hp.com>: updated for new timer-interpolation infrastructure
7 */
9 #include <linux/init.h>
10 #include <linux/kernel.h>
11 #include <linux/sched.h>
12 #include <linux/time.h>
13 #include <linux/interrupt.h>
15 #include <asm/hw_irq.h>
16 #include <asm/system.h>
18 #include <asm/sn/leds.h>
19 #include <asm/sn/shub_mmr.h>
20 #include <asm/sn/clksupport.h>
22 extern unsigned long sn_rtc_cycles_per_second;
24 static struct time_interpolator sn2_interpolator = {
25 .drift = -1,
26 .shift = 10,
27 .mask = (1LL << 55) - 1,
28 .source = TIME_SOURCE_MMIO64
31 void __init sn_timer_init(void)
33 sn2_interpolator.frequency = sn_rtc_cycles_per_second;
34 sn2_interpolator.addr = RTC_COUNTER_ADDR;
35 register_time_interpolator(&sn2_interpolator);