Module Name:    src
Committed By:   christos
Date:           Mon Feb 10 22:11:09 UTC 2020

Modified Files:
        src/sys/kern: kern_lock.c

Log Message:
Put back the delay hooks which were deleted before. Without them VirtualBox
spins out.


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/kern/kern_lock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_lock.c
diff -u src/sys/kern/kern_lock.c:1.168 src/sys/kern/kern_lock.c:1.169
--- src/sys/kern/kern_lock.c:1.168	Mon Jan 27 16:05:43 2020
+++ src/sys/kern/kern_lock.c	Mon Feb 10 17:11:09 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_lock.c,v 1.168 2020/01/27 21:05:43 ad Exp $	*/
+/*	$NetBSD: kern_lock.c,v 1.169 2020/02/10 22:11:09 christos Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2009, 2020 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.168 2020/01/27 21:05:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.169 2020/02/10 22:11:09 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lockdebug.h"
@@ -243,6 +243,8 @@ _kernel_lock(int nlocks)
 				if (!start_init_exec)
 					_KERNEL_LOCK_ABORT("spinout");
 			}
+			SPINLOCK_BACKOFF_HOOK;
+			SPINLOCK_SPIN_HOOK;
 #endif
 		}
 		s = splvm();

Reply via email to