diff options
Diffstat (limited to 'arch/mips/mm/sc-mips.c')
| -rw-r--r-- | arch/mips/mm/sc-mips.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/mm/sc-mips.c b/arch/mips/mm/sc-mips.c index 5d01392e351..99eb8fabab6 100644 --- a/arch/mips/mm/sc-mips.c +++ b/arch/mips/mm/sc-mips.c @@ -6,6 +6,7 @@  #include <linux/sched.h>  #include <linux/mm.h> +#include <asm/cpu-type.h>  #include <asm/mipsregs.h>  #include <asm/bcache.h>  #include <asm/cacheops.h> @@ -71,10 +72,14 @@ static inline int mips_sc_is_activated(struct cpuinfo_mips *c)  	unsigned int tmp;  	/* Check the bypass bit (L2B) */ -	switch (c->cputype) { +	switch (current_cpu_type()) {  	case CPU_34K:  	case CPU_74K:  	case CPU_1004K: +	case CPU_1074K: +	case CPU_INTERAPTIV: +	case CPU_PROAPTIV: +	case CPU_P5600:  	case CPU_BMIPS5000:  		if (config2 & (1 << 12))  			return 0;  | 
