Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include Use the lwp_getcpu() inline for curcpu().



details:   https://anonhg.NetBSD.org/src/rev/07ad04909043
branches:  trunk
changeset: 338509:07ad04909043
user:      matt <matt%NetBSD.org@localhost>
date:      Thu May 28 04:16:50 2015 +0000

description:
Use the lwp_getcpu() inline for curcpu().

diffstat:

 sys/arch/mips/include/cpu.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b8d2100c886e -r 07ad04909043 sys/arch/mips/include/cpu.h
--- a/sys/arch/mips/include/cpu.h       Thu May 28 04:08:48 2015 +0000
+++ b/sys/arch/mips/include/cpu.h       Thu May 28 04:16:50 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.110 2015/05/02 17:39:31 matt Exp $   */
+/*     $NetBSD: cpu.h,v 1.111 2015/05/28 04:16:50 matt Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -232,7 +232,7 @@
 register struct lwp *mips_curlwp asm(MIPS_CURLWP_QUOTED);
 
 #define        curlwp                  mips_curlwp
-#define        curcpu()                (curlwp->l_cpu)
+#define        curcpu()                lwp_getcpu(curlwp)
 #define        curpcb                  ((struct pcb *)lwp_getpcb(curlwp))
 #ifdef MULTIPROCESSOR
 #define        cpu_number()            (curcpu()->ci_index)



Home | Main Index | Thread Index | Old Index