time.c (4b550488f894c899aa54dc935c8fee47bca2b7df) time.c (d865bea4dace1d42995a6cf552bc4863842623f4)
1#include <linux/types.h>
2#include <linux/interrupt.h>
3#include <linux/time.h>
4
1#include <linux/types.h>
2#include <linux/interrupt.h>
3#include <linux/time.h>
4
5#include <asm/i8253.h>
5#include <asm/sni.h>
6#include <asm/time.h>
7#include <asm-generic/rtc.h>
8
9#define SNI_CLOCK_TICK_RATE 3686400
10#define SNI_COUNTER2_DIV 64
11#define SNI_COUNTER0_DIV ((SNI_CLOCK_TICK_RATE / SNI_COUNTER2_DIV) / HZ)
12

--- 98 unchanged lines hidden (view full) ---

111 } else
112 r4k_tick = r4k_ticks[0];
113
114 printk("%d [%d.%04d MHz CPU]\n", (int) r4k_tick,
115 (int) (r4k_tick / (500000 / HZ)),
116 (int) (r4k_tick % (500000 / HZ)));
117
118 mips_hpt_frequency = r4k_tick * HZ;
6#include <asm/sni.h>
7#include <asm/time.h>
8#include <asm-generic/rtc.h>
9
10#define SNI_CLOCK_TICK_RATE 3686400
11#define SNI_COUNTER2_DIV 64
12#define SNI_COUNTER0_DIV ((SNI_CLOCK_TICK_RATE / SNI_COUNTER2_DIV) / HZ)
13

--- 98 unchanged lines hidden (view full) ---

112 } else
113 r4k_tick = r4k_ticks[0];
114
115 printk("%d [%d.%04d MHz CPU]\n", (int) r4k_tick,
116 (int) (r4k_tick / (500000 / HZ)),
117 (int) (r4k_tick % (500000 / HZ)));
118
119 mips_hpt_frequency = r4k_tick * HZ;
120
121 setup_pit_timer();
119}
120
121/*
122 * R4k counter based timer interrupt. Works on RM200-225 and possibly
123 * others but not on RM400
124 */
125static void __init sni_cpu_timer_setup(struct irqaction *irq)
126{

--- 28 unchanged lines hidden ---
122}
123
124/*
125 * R4k counter based timer interrupt. Works on RM200-225 and possibly
126 * others but not on RM400
127 */
128static void __init sni_cpu_timer_setup(struct irqaction *irq)
129{

--- 28 unchanged lines hidden ---