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/macppc/macppc Pullup modified 1.13 by patch [t...



details:   https://anonhg.NetBSD.org/src/rev/2dc3b5f99429
branches:  netbsd-1-5
changeset: 490156:2dc3b5f99429
user:      tv <tv%NetBSD.org@localhost>
date:      Sun Nov 05 21:44:38 2000 +0000

description:
Pullup modified 1.13 by patch [tsubai]:
Use "doze" power-saving mode on 750 and 7400.

diffstat:

 sys/arch/macppc/macppc/cpu.c |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (34 lines):

diff -r 47484c8ba0e5 -r 2dc3b5f99429 sys/arch/macppc/macppc/cpu.c
--- a/sys/arch/macppc/macppc/cpu.c      Sun Nov 05 01:27:04 2000 +0000
+++ b/sys/arch/macppc/macppc/cpu.c      Sun Nov 05 21:44:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.6.4.1 2000/11/01 16:31:35 tv Exp $   */
+/*     $NetBSD: cpu.c,v 1.6.4.2 2000/11/05 21:44:38 tv Exp $   */
 
 /*-
  * Copyright (C) 1998, 1999 Internet Research Institute, Inc.
@@ -90,6 +90,8 @@
        case MPC603:
        case MPC603e:
        case MPC603ev:
+       case MPC750:
+       case MPC7400:
                /* Select DOZE power-saving mode. */
                __asm __volatile ("mfspr %0,1008" : "=r"(hid0));
                hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
@@ -97,15 +99,6 @@
                __asm __volatile ("mtspr 1008,%0" :: "r"(hid0));
                powersave = 1;
                break;
-       case MPC750:
-       case MPC7400:
-               /* Select NAP power-saving mode. */
-               __asm __volatile ("mfspr %0,1008" : "=r"(hid0));
-               hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
-               hid0 |= HID0_NAP | HID0_DPM;
-               __asm __volatile ("mtspr 1008,%0" :: "r"(hid0));
-               powersave = 1;
-               break;
        }
 
        /*



Home | Main Index | Thread Index | Old Index