mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
MIPS: Get rid of CAVIUM_OCTEON_DCACHE_PREFETCH_WAR
CAVIUM_OCTEON_DCACHE_PREFETCH_WAR is a check for Octeon model CN6XXXX. By using the version check we can remove the define. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
ab5743079b
commit
8e7291d603
@ -1126,7 +1126,7 @@ EXPORT_SYMBOL(prom_putchar);
|
||||
|
||||
void __init prom_free_prom_memory(void)
|
||||
{
|
||||
if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR) {
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) {
|
||||
/* Check for presence of Core-14449 fix. */
|
||||
u32 insn;
|
||||
u32 *foo;
|
||||
|
@ -9,7 +9,4 @@
|
||||
#ifndef __ASM_MIPS_MACH_CAVIUM_OCTEON_WAR_H
|
||||
#define __ASM_MIPS_MACH_CAVIUM_OCTEON_WAR_H
|
||||
|
||||
#define CAVIUM_OCTEON_DCACHE_PREFETCH_WAR \
|
||||
OCTEON_IS_MODEL(OCTEON_CN6XXX)
|
||||
|
||||
#endif /* __ASM_MIPS_MACH_CAVIUM_OCTEON_WAR_H */
|
||||
|
@ -394,7 +394,7 @@ I_u2u1u3(_lddir)
|
||||
void uasm_i_pref(u32 **buf, unsigned int a, signed int b,
|
||||
unsigned int c)
|
||||
{
|
||||
if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR && a <= 24 && a != 5)
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN6XXX) && a <= 24 && a != 5)
|
||||
/*
|
||||
* As per erratum Core-14449, replace prefetches 0-4,
|
||||
* 6-24 with 'pref 28'.
|
||||
|
Loading…
Reference in New Issue
Block a user