Change __mp_lock_held() to work with an arbitrary CPU info structure and
authormpi <mpi@openbsd.org>
Mon, 4 Dec 2017 09:51:03 +0000 (09:51 +0000)
committermpi <mpi@openbsd.org>
Mon, 4 Dec 2017 09:51:03 +0000 (09:51 +0000)
commitba0fc568d9c35fb642d91e327e264398ac267760
tree9920a8689fecd30310e986c8b53aee80be325a36
parent25391aceeff3784e353740a04fe0c6eb34daed23
Change __mp_lock_held() to work with an arbitrary CPU info structure and
extend ddb(4) "ps /o" output to print which CPU is currently holding the
KERNEL_LOCK().

Tested by dhill@, ok visa@
12 files changed:
sys/arch/alpha/alpha/lock_machdep.c
sys/arch/alpha/include/mplock.h
sys/arch/arm64/include/mplock.h
sys/arch/hppa/hppa/lock_machdep.c
sys/arch/hppa/include/mplock.h
sys/arch/m88k/include/mplock.h
sys/arch/powerpc/include/mplock.h
sys/arch/powerpc/powerpc/lock_machdep.c
sys/kern/kern_lock.c
sys/kern/kern_proc.c
sys/sys/mplock.h
sys/sys/sched.h