Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2018 16:25:28 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330857 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201803131625.w2DGPSTf005293@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803131625.w2DGPSTf005293>