Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc cpu_reboot: use cpu_halt_others() ins...



details:   https://anonhg.NetBSD.org/src/rev/3604fa75aba9
branches:  trunk
changeset: 368160:3604fa75aba9
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jun 26 09:23:32 2022 +0000

description:
cpu_reboot: use cpu_halt_others() instead of a (simple) open coded
version of it.

diffstat:

 sys/arch/macppc/macppc/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2549a9c4aa43 -r 3604fa75aba9 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Sun Jun 26 09:18:06 2022 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Sun Jun 26 09:23:32 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.174 2021/03/10 19:45:41 macallan Exp $   */
+/*     $NetBSD: machdep.c,v 1.175 2022/06/26 09:23:32 martin Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.174 2021/03/10 19:45:41 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.175 2022/06/26 09:23:32 martin Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -233,7 +233,7 @@
 
 #ifdef MULTIPROCESSOR
        /* Halt other CPU */
-       cpu_send_ipi(IPI_DST_NOTME, IPI_HALT);
+       cpu_halt_others();
        delay(100000);  /* XXX */
 #endif
 



Home | Main Index | Thread Index | Old Index