Module Name: src Committed By: matt Date: Thu May 28 04:16:50 UTC 2015
Modified Files: src/sys/arch/mips/include: cpu.h Log Message: Use the lwp_getcpu() inline for curcpu(). To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/sys/arch/mips/include/cpu.h 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/mips/include/cpu.h diff -u src/sys/arch/mips/include/cpu.h:1.110 src/sys/arch/mips/include/cpu.h:1.111 --- src/sys/arch/mips/include/cpu.h:1.110 Sat May 2 17:39:31 2015 +++ src/sys/arch/mips/include/cpu.h Thu May 28 04:16:50 2015 @@ -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 @@ extern struct cpu_info cpu_info_store; 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)