Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Remove unused PREF, PREFE & PREFX macros

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

-36
-36
arch/mips/include/asm/asm.h
··· 104 104 .popsection; 105 105 106 106 /* 107 - * MIPS IV pref instruction. 108 - * Use with .set noreorder only! 109 - * 110 - * MIPS IV implementations are free to treat this as a nop. The R5000 111 - * is one of them. So we should have an option not to use this instruction. 112 - */ 113 - #ifdef CONFIG_CPU_HAS_PREFETCH 114 - 115 - #define PREF(hint,addr) \ 116 - .set push; \ 117 - .set arch=r5000; \ 118 - pref hint, addr; \ 119 - .set pop 120 - 121 - #define PREFE(hint, addr) \ 122 - .set push; \ 123 - .set mips0; \ 124 - .set eva; \ 125 - prefe hint, addr; \ 126 - .set pop 127 - 128 - #define PREFX(hint,addr) \ 129 - .set push; \ 130 - .set arch=r5000; \ 131 - prefx hint, addr; \ 132 - .set pop 133 - 134 - #else /* !CONFIG_CPU_HAS_PREFETCH */ 135 - 136 - #define PREF(hint, addr) 137 - #define PREFE(hint, addr) 138 - #define PREFX(hint, addr) 139 - 140 - #endif /* !CONFIG_CPU_HAS_PREFETCH */ 141 - 142 - /* 143 107 * Stack alignment 144 108 */ 145 109 #if (_MIPS_SIM == _MIPS_SIM_ABI32)