Author: mjg
Date: Tue Nov 24 03:48:44 2020
New Revision: 367977
URL: https://svnweb.freebsd.org/changeset/base/367977

Log:
  sx: drop spurious volatile keyword

Modified:
  head/sys/kern/kern_sx.c

Modified: head/sys/kern/kern_sx.c
==============================================================================
--- head/sys/kern/kern_sx.c     Tue Nov 24 02:51:45 2020        (r367976)
+++ head/sys/kern/kern_sx.c     Tue Nov 24 03:48:44 2020        (r367977)
@@ -573,7 +573,7 @@ _sx_xlock_hard(struct sx *sx, uintptr_t x, int opts LO
        GIANT_DECLARE;
        uintptr_t tid, setx;
 #ifdef ADAPTIVE_SX
-       volatile struct thread *owner;
+       struct thread *owner;
        u_int i, n, spintries = 0;
        enum { READERS, WRITER } sleep_reason = READERS;
        bool in_critical = false;
@@ -1020,7 +1020,7 @@ _sx_slock_hard(struct sx *sx, int opts, uintptr_t x LO
        GIANT_DECLARE;
        struct thread *td;
 #ifdef ADAPTIVE_SX
-       volatile struct thread *owner;
+       struct thread *owner;
        u_int i, n, spintries = 0;
 #endif
 #ifdef LOCK_PROFILING
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to