Module Name:    src
Committed By:   macallan
Date:           Sun May 12 13:50:11 UTC 2013

Modified Files:
        src/sys/arch/powerpc/powerpc: openfirm.c

Log Message:
add OF_quiesce() to shut down OF background tasks, needed on G5
from Phileas Fogg


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/powerpc/powerpc/openfirm.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/powerpc/openfirm.c
diff -u src/sys/arch/powerpc/powerpc/openfirm.c:1.21 src/sys/arch/powerpc/powerpc/openfirm.c:1.22
--- src/sys/arch/powerpc/powerpc/openfirm.c:1.21	Sun Jul 17 20:54:46 2011
+++ src/sys/arch/powerpc/powerpc/openfirm.c	Sun May 12 13:50:11 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: openfirm.c,v 1.21 2011/07/17 20:54:46 joerg Exp $	*/
+/*	$NetBSD: openfirm.c,v 1.22 2013/05/12 13:50:11 macallan Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -34,7 +34,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.21 2011/07/17 20:54:46 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.22 2013/05/12 13:50:11 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -722,6 +722,23 @@ OF_interpret(const char *cmd, int nargs,
 	return status;
 }
 
+void
+OF_quiesce(void)
+{
+	static struct {
+		const char *name;
+		int nargs;
+		int nreturns;
+	} args = {
+		"quiesce",
+		0,
+		0,
+	};
+
+	ofw_stack();
+	openfirmware(&args);
+}
+
 /*
  * This version of bcopy doesn't work for overlapping regions!
  */

Reply via email to