Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2014 12:40:01 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270806 - head/sys/dev/ixl
Message-ID:  <201408291240.s7TCe1OQ029986@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Fri Aug 29 12:40:01 2014
New Revision: 270806
URL: http://svnweb.freebsd.org/changeset/base/270806

Log:
  Properly handle prefetch only for amd64 and i386 as we do elsewhere.
  
  In general theraven is right that we should factr this out and provide
  a general and per-arch implementation that everything can use.
  
  MFC after:	3 days
  X-MFC with:	r270755

Modified:
  head/sys/dev/ixl/i40e_osdep.h

Modified: head/sys/dev/ixl/i40e_osdep.h
==============================================================================
--- head/sys/dev/ixl/i40e_osdep.h	Fri Aug 29 11:18:54 2014	(r270805)
+++ head/sys/dev/ixl/i40e_osdep.h	Fri Aug 29 12:40:01 2014	(r270806)
@@ -137,11 +137,15 @@ struct i40e_spinlock {
 
 #define le16_to_cpu 
 
+#if defined(__amd64__) || defined(i386)
 static __inline
 void prefetch(void *x)
 {
 	__asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x));
 }
+#else
+#define	prefetch(x)
+#endif
 
 struct i40e_osdep
 {



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