MIPS: Sibyte: Apply M3 workaround only on affected chip types and versions.
Previously it was unconditionally used on all Sibyte family SOCs. The M3 bug has to be handled in the TLB exception handler which is extremly performance sensitive, so this modification is expected to deliver around 2-3% performance improvment. This is important as required changes to the M3 workaround will make it more costly. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@@ -16,7 +16,11 @@
|
||||
#if defined(CONFIG_SB1_PASS_1_WORKAROUNDS) || \
|
||||
defined(CONFIG_SB1_PASS_2_WORKAROUNDS)
|
||||
|
||||
#define BCM1250_M3_WAR 1
|
||||
#ifndef __ASSEMBLY__
|
||||
extern int sb1250_m3_workaround_needed(void);
|
||||
#endif
|
||||
|
||||
#define BCM1250_M3_WAR sb1250_m3_workaround_needed()
|
||||
#define SIBYTE_1956_WAR 1
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user