Author: hselasky
Date: Tue Mar 13 16:25:28 2018
New Revision: 330857
URL: https://svnweb.freebsd.org/changeset/base/330857

Log:
  MFC r330391:
  Implement writel_relaxed() in the LinuxKPI.
  
  Submitted by: Johannes Lundberg <johal...@gmail.com>
  Sponsored by: Mellanox Technologies
  Sponsored by: Limelight Networks

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/io.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/io.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/io.h     Tue Mar 13 
16:24:28 2018        (r330856)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/io.h     Tue Mar 13 
16:25:28 2018        (r330857)
@@ -74,6 +74,13 @@ writel(uint32_t b, void *addr)
         *(volatile uint32_t *)addr = b;
 }
 
+#undef writel_relaxed
+static inline void
+writel_relaxed(uint32_t b, void *addr)
+{
+       *(volatile uint32_t *)addr = b;
+}
+
 #undef writeq
 static inline void
 writeq(uint64_t b, void *addr)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to