Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2021 22:02:13 GMT
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6e405dd9e48d - stable/13 - cxgbe(4): Remove some dead code.
Message-ID:  <202107262202.16QM2DT0074151@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by np:

URL: https://cgit.FreeBSD.org/src/commit/?id=6e405dd9e48db9d088d6832efe8630c098bc4ce2

commit 6e405dd9e48db9d088d6832efe8630c098bc4ce2
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2021-05-19 06:16:03 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2021-07-26 17:49:25 +0000

    cxgbe(4): Remove some dead code.
    
    (cherry picked from commit 3965469eaa33aca03837baf5f88a55fa89f3f987)
---
 sys/dev/cxgbe/adapter.h           | 10 ----------
 sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h |  2 --
 2 files changed, 12 deletions(-)

diff --git a/sys/dev/cxgbe/adapter.h b/sys/dev/cxgbe/adapter.h
index 7bdad292c752..7f6e1ceb1550 100644
--- a/sys/dev/cxgbe/adapter.h
+++ b/sys/dev/cxgbe/adapter.h
@@ -68,16 +68,6 @@ MALLOC_DECLARE(M_CXGBE);
 #define CXGBE_UNIMPLEMENTED(s) \
     panic("%s (%s, line %d) not implemented yet.", s, __FILE__, __LINE__)
 
-#if defined(__i386__) || defined(__amd64__)
-static __inline void
-prefetch(void *x)
-{
-	__asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x));
-}
-#else
-#define prefetch(x) __builtin_prefetch(x)
-#endif
-
 #ifndef SYSCTL_ADD_UQUAD
 #define SYSCTL_ADD_UQUAD SYSCTL_ADD_QUAD
 #define sysctl_handle_64 sysctl_handle_quad
diff --git a/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h b/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
index 8314800c4e7b..1a717d6352c8 100644
--- a/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
+++ b/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
@@ -56,8 +56,6 @@
 #include <rdma/ib_verbs.h>
 #include <rdma/iw_cm.h>
 
-#undef prefetch
-
 #include "common/common.h"
 #include "common/t4_msg.h"
 #include "common/t4_regs.h"



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