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 do what FreeBSD does and OF_quiesce() o...



details:   https://anonhg.NetBSD.org/src/rev/04a4acd961f2
branches:  trunk
changeset: 1007748:04a4acd961f2
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Feb 28 22:14:10 2020 +0000

description:
do what FreeBSD does and OF_quiesce() only on PowerMac11,2 and 12,1

diffstat:

 sys/arch/powerpc/oea/ofwoea_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r e3dd8a850257 -r 04a4acd961f2 sys/arch/powerpc/oea/ofwoea_machdep.c
--- a/sys/arch/powerpc/oea/ofwoea_machdep.c     Fri Feb 28 22:09:34 2020 +0000
+++ b/sys/arch/powerpc/oea/ofwoea_machdep.c     Fri Feb 28 22:14:10 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwoea_machdep.c,v 1.46 2020/02/28 22:09:34 macallan Exp $ */
+/* $NetBSD: ofwoea_machdep.c,v 1.47 2020/02/28 22:14:10 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.46 2020/02/28 22:09:34 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.47 2020/02/28 22:14:10 macallan Exp $");
 
 #include "opt_ppcarch.h"
 #include "opt_compat_netbsd.h"
@@ -175,8 +175,8 @@
                model_init();
        }
 
-       if (strncmp(model_name, "PowerMac11,", 11) == 0 ||
-           strncmp(model_name, "PowerMac7,", 10) == 0)
+       if (strncmp(model_name, "PowerMac11,2", 12) == 0 ||
+           strncmp(model_name, "PowerMac12,1", 12) == 0)
                OF_quiesce();
 
        /* switch CPUs to full speed */



Home | Main Index | Thread Index | Old Index