Bring back r313037, with fixes for mips:
authorjah <jah@FreeBSD.org>
Sun, 19 Feb 2017 02:03:09 +0000 (02:03 +0000)
committerjah <jah@FreeBSD.org>
Sun, 19 Feb 2017 02:03:09 +0000 (02:03 +0000)
commit85257d4d566578298a1adef5e3d6f4e2a894deea
tree9084d36abe2ce04450b2f804f1fcf8409c3b40c5
parent9d1d07d1cb1775041b3832eac20167d41a3454de
Bring back r313037, with fixes for mips:

Implement get_pcpu() for amd64/sparc64/mips/powerpc, and use it to
replace pcpu_find(curcpu) in MI code.

Reviewed by: andreast, kan, lidl
Tested by: lidl(mips, sparc64), andreast(powerpc)
Differential Revision: https://reviews.freebsd.org/D9587
sys/amd64/include/pcpu.h
sys/kern/kern_rmlock.c
sys/mips/include/pcpu.h
sys/mips/mips/machdep.c
sys/net/netisr.c
sys/powerpc/include/cpufunc.h
sys/powerpc/include/pcpu.h
sys/sparc64/include/pcpu.h