svn commit: r329701 - head/sys/dev/cxgbe

Wojciech Macek wma at FreeBSD.org
Wed Feb 21 08:05:57 UTC 2018


Author: wma
Date: Wed Feb 21 08:05:56 2018
New Revision: 329701
URL: https://svnweb.freebsd.org/changeset/base/329701

Log:
  CXGBE: implement prefetch on non-Intel architectures
  
  Submitted by:          Michal Stanek <mst at semihalf.com>
  Obtained from:         Semihalf
  Reviewed by:           np, pdk at semihalf.com
  Sponsored by:          IBM, QCM Technologies
  Differential revision: https://reviews.freebsd.org/D14452

Modified:
  head/sys/dev/cxgbe/adapter.h

Modified: head/sys/dev/cxgbe/adapter.h
==============================================================================
--- head/sys/dev/cxgbe/adapter.h	Wed Feb 21 05:04:58 2018	(r329700)
+++ head/sys/dev/cxgbe/adapter.h	Wed Feb 21 08:05:56 2018	(r329701)
@@ -72,7 +72,7 @@ prefetch(void *x)
 	__asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x));
 }
 #else
-#define prefetch(x)
+#define prefetch(x) __builtin_prefetch(x)
 #endif
 
 #ifndef SYSCTL_ADD_UQUAD


More information about the svn-src-head mailing list