Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Install power-saving idle routines at the...



details:   https://anonhg.NetBSD.org/src/rev/725d4478e4c5
branches:  trunk
changeset: 510452:725d4478e4c5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 29 17:54:56 2001 +0000

description:
Install power-saving idle routines at the end of cpu_identify().  We
currently handle the QED RM52xx here.

diffstat:

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

diffs (43 lines):

diff -r b907832017cb -r 725d4478e4c5 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Tue May 29 17:51:55 2001 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Tue May 29 17:54:56 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.113 2001/05/02 21:23:03 thorpej Exp $       */
+/*     $NetBSD: mips_machdep.c,v 1.114 2001/05/29 17:54:56 thorpej 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.113 2001/05/02 21:23:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.114 2001/05/29 17:54:56 thorpej Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_ultrix.h"
@@ -716,6 +716,24 @@
 #endif
        /* XXX cache sizes for MIPS1? */
        /* XXX hardware mcclock CPU-speed computation */
+
+       /*
+        * Install power-saving idle routines.
+        */
+       switch (MIPS_PRID_IMPL(cpu_id)) {
+#ifdef MIPS3
+       case MIPS_RM5200:
+           {
+               extern void rm52xx_idle(void);
+
+               CPU_IDLE = (long *) rm52xx_idle;
+               break;
+           }
+#endif /* MIPS3 */
+       default:
+               /* Nothing. */
+               break;
+       }
 }
 
 /*



Home | Main Index | Thread Index | Old Index