sys/lock.h: Need <sys/systm.h> for nullop.

But only do that we're not using SPINLOCK_BACKOFF_HOOK from
<machine/lock.h>.
This commit is contained in:
riastradh 2022-07-24 20:28:39 +00:00
parent 2827986044
commit 51335a1181
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lock.h,v 1.91 2020/12/22 01:58:58 ad Exp $ */ /* $NetBSD: lock.h,v 1.92 2022/07/24 20:28:39 riastradh Exp $ */
/*- /*-
* Copyright (c) 1999, 2000, 2006, 2007 The NetBSD Foundation, Inc. * Copyright (c) 1999, 2000, 2006, 2007 The NetBSD Foundation, Inc.
@ -51,6 +51,7 @@
#define SPINLOCK_SPIN_HOOK #define SPINLOCK_SPIN_HOOK
#endif #endif
#ifndef SPINLOCK_BACKOFF_HOOK #ifndef SPINLOCK_BACKOFF_HOOK
#include <sys/systm.h>
#define SPINLOCK_BACKOFF_HOOK nullop(NULL) #define SPINLOCK_BACKOFF_HOOK nullop(NULL)
#endif #endif
#ifndef SPINLOCK_BACKOFF_MIN #ifndef SPINLOCK_BACKOFF_MIN