Skip to content

Commit 2ba16c4

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus: MIPS: Fix build errors in sc-mips.c
2 parents 46bdfe6 + 081d835 commit 2ba16c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/mips/mm/sc-mips.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ static struct bcache_ops mips_sc_ops = {
6868
*/
6969
static inline int mips_sc_is_activated(struct cpuinfo_mips *c)
7070
{
71+
unsigned int config2 = read_c0_config2();
72+
unsigned int tmp;
73+
7174
/* Check the bypass bit (L2B) */
7275
switch (c->cputype) {
7376
case CPU_34K:
@@ -83,6 +86,7 @@ static inline int mips_sc_is_activated(struct cpuinfo_mips *c)
8386
c->scache.linesz = 2 << tmp;
8487
else
8588
return 0;
89+
return 1;
8690
}
8791

8892
static inline int __init mips_sc_probe(void)

0 commit comments

Comments
 (0)