Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/mips/mips Pull up revisions 1.114-1.115 (via p...



details:   https://anonhg.NetBSD.org/src/rev/aded8f4547bb
branches:  netbsd-1-5
changeset: 491847:aded8f4547bb
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 07 15:58:29 2001 +0000

description:
Pull up revisions 1.114-1.115 (via patch, requested by hubertf,
        reviewed by thorpej):
  Implement power saving for RM5200 and RM7000 CPUs, as used in
  e.g. Cobalt RaQ2.

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r c1aa45c3b0d1 -r aded8f4547bb sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Thu Jun 07 15:57:52 2001 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Thu Jun 07 15:58:29 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.90 2000/06/17 06:38:25 cgd Exp $    */
+/*     $NetBSD: mips_machdep.c,v 1.90.2.1 2001/06/07 15:58:29 he Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.90 2000/06/17 06:38:25 cgd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.90.2.1 2001/06/07 15:58:29 he Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_ultrix.h"
@@ -644,6 +644,25 @@
 #endif
        /* XXX cache sizes for MIPS1? */
        /* XXX hardware mcclock CPU-speed computation */
+
+       /*
+        * Install power-saving idle routines.
+        */
+       switch (cpu_id.cpu.cp_imp) {
+#ifdef MIPS3
+       case MIPS_RM5200:
+       case MIPS_RM7000:
+           {
+               extern void rm52xx_idle(void);
+
+               CPU_IDLE = (long *) rm52xx_idle;
+               break;
+           }
+#endif /* MIPS3 */
+       default:
+               /* Nothing. */
+               break;
+       }
 }
 
 /*



Home | Main Index | Thread Index | Old Index