summaryrefslogtreecommitdiffstats
path: root/drivers/staging/octeon-usb
diff options
context:
space:
mode:
authorAaro Koskinen2013-10-01 22:43:17 +0200
committerGreg Kroah-Hartman2013-10-03 22:38:06 +0200
commit5bffcff517234e3d2611f3504ff82c92152bcd36 (patch)
treea7d6c401725cf163bf2cf9af69664cc0ce86d724 /drivers/staging/octeon-usb
parentstaging: octeon-usb: eliminate CVMX_PREFETCH_PREF0 (diff)
downloadkernel-qcow2-linux-5bffcff517234e3d2611f3504ff82c92152bcd36.tar.gz
kernel-qcow2-linux-5bffcff517234e3d2611f3504ff82c92152bcd36.tar.xz
kernel-qcow2-linux-5bffcff517234e3d2611f3504ff82c92152bcd36.zip
staging: octeon-usb: eliminate CVMX_PREFETCH_PREFX
Eliminate CVMX_PREFETCH_PREFX. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon-usb')
-rw-r--r--drivers/staging/octeon-usb/cvmx-usb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/octeon-usb/cvmx-usb.c b/drivers/staging/octeon-usb/cvmx-usb.c
index d53daf7ee2b2..9647deb37325 100644
--- a/drivers/staging/octeon-usb/cvmx-usb.c
+++ b/drivers/staging/octeon-usb/cvmx-usb.c
@@ -57,9 +57,8 @@
#include <asm/octeon/cvmx-helper.h>
#include <asm/octeon/cvmx-helper-board.h>
-// normal prefetches that use the pref instruction
-#define CVMX_PREFETCH_PREFX(X, address, offset) asm volatile ("pref %[type], %[off](%[rbase])" : : [rbase] "d" (address), [off] "I" (offset), [type] "n" (X))
-#define CVMX_PREFETCH(address, offset) CVMX_PREFETCH_PREFX(0, address, offset)
+/* Normal prefetch that use the pref instruction. */
+#define CVMX_PREFETCH(address, offset) asm volatile ("pref %[type], %[off](%[rbase])" : : [rbase] "d" (address), [off] "I" (offset), [type] "n" (0))
#define MAX_RETRIES 3 /* Maximum number of times to retry failed transactions */
#define MAX_PIPES 32 /* Maximum number of pipes that can be open at once */