Module Name:    src
Committed By:   macallan
Date:           Thu Oct 28 13:58:04 UTC 2010

Modified Files:
        src/sys/arch/powerpc/oea: cpu_subr.c

Log Message:
Use nap mode on 750-ish CPUs


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/powerpc/oea/cpu_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/oea/cpu_subr.c
diff -u src/sys/arch/powerpc/oea/cpu_subr.c:1.56 src/sys/arch/powerpc/oea/cpu_subr.c:1.57
--- src/sys/arch/powerpc/oea/cpu_subr.c:1.56	Wed Oct 20 18:52:33 2010
+++ src/sys/arch/powerpc/oea/cpu_subr.c	Thu Oct 28 13:58:03 2010
@@ -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:

Reply via email to