Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 cpu_boot_secondary_processors() nee...
details: https://anonhg.NetBSD.org/src/rev/8853583774c8
branches: trunk
changeset: 331951:8853583774c8
user: palle <palle%NetBSD.org@localhost>
date: Mon Sep 01 19:01:55 2014 +0000
description:
cpu_boot_secondary_processors() needs a platform independent way to get the cpu id, so use cpu_myid() instead of sun4u specific CPU_UPAID
diffstat:
sys/arch/sparc64/sparc64/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c384aa074da1 -r 8853583774c8 sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c Mon Sep 01 16:48:42 2014 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c Mon Sep 01 19:01:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.116 2014/07/25 18:29:45 nakayama Exp $ */
+/* $NetBSD: cpu.c,v 1.117 2014/09/01 19:01:55 palle Exp $ */
/*
* Copyright (c) 1996
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.116 2014/07/25 18:29:45 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.117 2014/09/01 19:01:55 palle Exp $");
#include "opt_multiprocessor.h"
@@ -545,7 +545,7 @@
}
for (ci = cpus; ci != NULL; ci = ci->ci_next) {
- if (ci->ci_cpuid == CPU_UPAID)
+ if (ci->ci_cpuid == cpu_myid())
continue;
cpu_pmap_prepare(ci, false);
Home |
Main Index |
Thread Index |
Old Index