Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc Powerpc send_ipi use ci_cpuid, not cpu_index



details:   https://anonhg.NetBSD.org/src/rev/5c8b15f748be
branches:  trunk
changeset: 761802:5c8b15f748be
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Feb 08 06:14:50 2011 +0000

description:
Powerpc send_ipi use ci_cpuid, not cpu_index

diffstat:

 sys/arch/powerpc/oea/altivec.c |  6 +++---
 sys/arch/powerpc/powerpc/fpu.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 8bd0d375b991 -r 5c8b15f748be sys/arch/powerpc/oea/altivec.c
--- a/sys/arch/powerpc/oea/altivec.c    Tue Feb 08 05:29:13 2011 +0000
+++ b/sys/arch/powerpc/oea/altivec.c    Tue Feb 08 06:14:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: altivec.c,v 1.20 2011/01/23 17:36:09 matt Exp $        */
+/*     $NetBSD: altivec.c,v 1.21 2011/02/08 06:14:50 matt Exp $        */
 
 /*
  * Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.20 2011/01/23 17:36:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.21 2011/02/08 06:14:50 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -177,7 +177,7 @@
        if ((l->l_md.md_flags & MDLWP_OWNVEC) == 0)
                return;
 
-       ppc_send_ipi(l->l_md.md_veccpu->ci_index, PPC_IPI_FLUSH_VEC);
+       ppc_send_ipi(l->l_md.md_veccpu->ci_cpuid, PPC_IPI_FLUSH_VEC);
 
        /* Wait for flush. */
        for (u_int i = 0; i < 0x3fffffff; i++) {
diff -r 8bd0d375b991 -r 5c8b15f748be sys/arch/powerpc/powerpc/fpu.c
--- a/sys/arch/powerpc/powerpc/fpu.c    Tue Feb 08 05:29:13 2011 +0000
+++ b/sys/arch/powerpc/powerpc/fpu.c    Tue Feb 08 06:14:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu.c,v 1.27 2011/01/23 17:36:09 matt Exp $    */
+/*     $NetBSD: fpu.c,v 1.28 2011/02/08 06:14:50 matt Exp $    */
 
 /*
  * Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.27 2011/01/23 17:36:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.28 2011/02/08 06:14:50 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -139,7 +139,7 @@
        if (fpucpu == NULL)
                return;
 
-       ppc_send_ipi(fpucpu->ci_index, PPC_IPI_FLUSH_FPU);
+       ppc_send_ipi(fpucpu->ci_cpuid, PPC_IPI_FLUSH_FPU);
 
        /* Wait for flush. */
        for (u_int i = 0; i < 0x3fffffff; i++) {



Home | Main Index | Thread Index | Old Index