Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/asm Use SPINLOCK_BACKOFF_HOOK,...



details:   https://anonhg.NetBSD.org/src/rev/6ff081e03b6a
branches:  trunk
changeset: 1028064:6ff081e03b6a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:46:08 2021 +0000

description:
Use SPINLOCK_BACKOFF_HOOK, not DELAY(1), for busy waits.

diffstat:

 sys/external/bsd/drm2/include/asm/processor.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r e42351a0dc04 -r 6ff081e03b6a sys/external/bsd/drm2/include/asm/processor.h
--- a/sys/external/bsd/drm2/include/asm/processor.h     Sun Dec 19 01:46:01 2021 +0000
+++ b/sys/external/bsd/drm2/include/asm/processor.h     Sun Dec 19 01:46:08 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index