mips: drop unused prefetch code and logic
authorRasmus Villemoes <ravi@prevas.dk>
Wed, 7 May 2025 12:12:45 +0000 (14:12 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 18 Jun 2025 14:05:04 +0000 (08:05 -0600)
AFAICT, CONFIG_CPU_HAS_PREFETCH has never existed as a proper Kconfig
symbol in U-Boot, nor has any board include file ever defined it.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
arch/mips/include/asm/processor.h

index 39a4f43..4c6322e 100644 (file)
@@ -118,20 +118,4 @@ struct task_struct;
  */
 #define return_address() ({__asm__ __volatile__("":::"$31");__builtin_return_address(0);})
 
-#ifdef CONFIG_CPU_HAS_PREFETCH
-
-#define ARCH_HAS_PREFETCH
-
-static inline void prefetch(const void *addr)
-{
-       __asm__ __volatile__(
-       "       .set    mips4           \n"
-       "       pref    %0, (%1)        \n"
-       "       .set    mips0           \n"
-       :
-       : "i" (Pref_Load), "r" (addr));
-}
-
-#endif
-
 #endif /* _ASM_PROCESSOR_H */