From 8d3b4fd4f5e7dfb98f0fe3fdbfb579f0dfe8d3bc Mon Sep 17 00:00:00 2001 From: dv Date: Tue, 26 Apr 2022 15:31:14 +0000 Subject: [PATCH] Bump __mp_lock_spinout to INT_MAX. The previous value set years ago was causing amd64 kernels to spin out when run with MP_LOCKDEBUG during boot. ok kettenis@ --- sys/kern/kern_lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 5cc55bb256a..b21e1aa5542 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_lock.c,v 1.71 2020/03/05 09:28:31 claudio Exp $ */ +/* $OpenBSD: kern_lock.c,v 1.72 2022/04/26 15:31:14 dv Exp $ */ /* * Copyright (c) 2017 Visa Hankala @@ -33,7 +33,7 @@ #endif /* CPU-dependent timing, this needs to be settable from ddb. */ -int __mp_lock_spinout = 200000000; +int __mp_lock_spinout = INT_MAX; #endif /* MP_LOCKDEBUG */ #ifdef MULTIPROCESSOR -- 2.20.1