patch-2.3.26 linux/arch/sh/kernel/time.c

Next file: linux/arch/sh/lib/checksum.S
Previous file: linux/arch/sh/kernel/sys_sh.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/arch/sh/kernel/time.c linux/arch/sh/kernel/time.c
@@ -1,4 +1,4 @@
-/* $Id: time.c,v 1.3 1999/10/17 10:30:15 gniibe Exp $
+/* $Id: time.c,v 1.7 1999/11/06 02:00:37 gniibe Exp $
  *
  *  linux/arch/sh/kernel/time.c
  *
@@ -43,7 +43,10 @@
 #define TMU0_TCNT	0xfffffe98	/* Long access */
 #define TMU0_TCR	0xfffffe9c	/* Word access */
 
-#define INTERVAL	37500 /* (1000000*CLOCK_MHZ/HZ/2) ??? */
+#define INTERVAL	37500 /* (1000000*CLOCK_MHZ/HZ/2) ??? for CqREEK */
+#if 0 /* Takeshi's board */
+#define INTERVAL	83333
+#endif
 
 /* SH-3 RTC */
 #define R64CNT  	0xfffffec0
@@ -195,6 +198,13 @@
 {
 	do_timer(regs);
 
+#ifdef TAKESHI
+	{
+		unsigned long what_is_this=0xa4000124;
+
+		ctrl_outb(ctrl_inb(what_is_this)+1,what_is_this);
+	}
+#endif
 #if 0
 	if (!user_mode(regs))
 		sh_do_profile(regs->pc);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)