From 1764f0df2a112e820709360ae1c631b59cc1bc05 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 4 Dec 2017 09:51:04 +0000 Subject: 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@ --- sys/arch/arm64/include/mplock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/arm64/include') diff --git a/sys/arch/arm64/include/mplock.h b/sys/arch/arm64/include/mplock.h index f85c6df27d8..9aed99ffbf0 100644 --- a/sys/arch/arm64/include/mplock.h +++ b/sys/arch/arm64/include/mplock.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mplock.h,v 1.1 2016/12/17 23:38:33 patrick Exp $ */ +/* $OpenBSD: mplock.h,v 1.2 2017/12/04 09:51:03 mpi Exp $ */ /* * Copyright (c) 2004 Niklas Hallqvist. All rights reserved. @@ -46,7 +46,7 @@ void __mp_unlock(struct __mp_lock *); int __mp_release_all(struct __mp_lock *); int __mp_release_all_but_one(struct __mp_lock *); void __mp_acquire_count(struct __mp_lock *, int); -int __mp_lock_held(struct __mp_lock *); +int __mp_lock_held(struct __mp_lock *, struct cpu_info *); #endif -- cgit v1.2.3