Module Name: src
Committed By: riastradh
Date: Sun Dec 19 01:46:09 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/asm: processor.h
Log Message:
Use SPINLOCK_BACKOFF_HOOK, not DELAY(1), for busy waits.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/include/asm/processor.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/asm/processor.h
diff -u src/sys/external/bsd/drm2/include/asm/processor.h:1.5 src/sys/external/bsd/drm2/include/asm/processor.h:1.6
--- src/sys/external/bsd/drm2/include/asm/processor.h:1.5 Sun Dec 19 01:39:34 2021
+++ src/sys/external/bsd/drm2/include/asm/processor.h Sun Dec 19 01:46:08 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: processor.h,v 1.5 2021/12/19 01:39:34 riastradh Exp $ */
+/* $NetBSD: processor.h,v 1.6 2021/12/19 01:46:08 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,9 @@
#include <sys/param.h>
-#define cpu_relax() DELAY(1) /* XXX */
+#include <sys/lock.h>
+
+#define cpu_relax() SPINLOCK_BACKOFF_HOOK
#if defined(__i386__) || defined(__x86_64__)
static inline void