MIPS: Remove unused PREF, PREFE & PREFX macros
authorPaul Burton <paul.burton@mips.com>
Mon, 15 Oct 2018 18:33:23 +0000 (18:33 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 16 Oct 2018 06:11:14 +0000 (23:11 -0700)
asm/asm.h provides PREF(), PREFE() & PREFX() macros which are now
entirely unused. Delete the dead code.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20908/
Cc: linux-mips@linux-mips.org
arch/mips/include/asm/asm.h

index 74b1c6fd8277c2b483f4e9ad14b1b8d87d612580..c23527ba65d09f999e69d0ddb002f06510cb17b0 100644 (file)
@@ -103,42 +103,6 @@ symbol             =       value
 8:             .asciiz msg;                            \
                .popsection;
 
-/*
- * MIPS IV pref instruction.
- * Use with .set noreorder only!
- *
- * MIPS IV implementations are free to treat this as a nop.  The R5000
- * is one of them.  So we should have an option not to use this instruction.
- */
-#ifdef CONFIG_CPU_HAS_PREFETCH
-
-#define PREF(hint,addr)                                        \
-               .set    push;                           \
-               .set    arch=r5000;                     \
-               pref    hint, addr;                     \
-               .set    pop
-
-#define PREFE(hint, addr)                              \
-               .set    push;                           \
-               .set    mips0;                          \
-               .set    eva;                            \
-               prefe   hint, addr;                     \
-               .set    pop
-
-#define PREFX(hint,addr)                               \
-               .set    push;                           \
-               .set    arch=r5000;                     \
-               prefx   hint, addr;                     \
-               .set    pop
-
-#else /* !CONFIG_CPU_HAS_PREFETCH */
-
-#define PREF(hint, addr)
-#define PREFE(hint, addr)
-#define PREFX(hint, addr)
-
-#endif /* !CONFIG_CPU_HAS_PREFETCH */
-
 /*
  * Stack alignment
  */