svn commit: r330857 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Mar 13 16:25:28 UTC 2018
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 <johalun0 at 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)
More information about the svn-src-stable-11
mailing list