Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea Use nap mode on 750-ish CPUs



details:   https://anonhg.NetBSD.org/src/rev/0322c9f4bb4a
branches:  trunk
changeset: 758244:0322c9f4bb4a
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Oct 28 13:58:03 2010 +0000

description:
Use nap mode on 750-ish CPUs

diffstat:

 sys/arch/powerpc/oea/cpu_subr.c |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r d3fc6b659d68 -r 0322c9f4bb4a sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c   Thu Oct 28 11:30:07 2010 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c   Thu Oct 28 13:58:03 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.56 2010/10/20 18:52:33 phx Exp $        */
+/*     $NetBSD: cpu_subr.c,v 1.57 2010/10/28 13:58:03 macallan Exp $   */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.56 2010/10/20 18:52:33 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.57 2010/10/28 13:58:03 macallan Exp $");
 
 #include "opt_ppcparam.h"
 #include "opt_multiprocessor.h"
@@ -475,8 +475,6 @@
        case MPC603:
        case MPC603e:
        case MPC603ev:
-       case MPC750:
-       case IBM750FX:
        case MPC7400:
        case MPC7410:
        case MPC8240:
@@ -488,6 +486,14 @@
                powersave = 1;
                break;
 
+       case MPC750:
+       case IBM750FX:
+               /* Select NAP mode. */
+               hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
+               hid0 |= HID0_NAP | HID0_DPM;
+               powersave = 1;
+               break;
+
        case MPC7447A:
        case MPC7448:
        case MPC7457:



Home | Main Index | Thread Index | Old Index