Skip to content

Commit ae2765c

Browse files
committed
ARCv2: IOC: Allow boot time disable
Signed-off-by: Alexey Brodkin <[email protected]>
1 parent 1d8ebde commit ae2765c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arc/mm/cache_arc700.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
static int l2_line_sz;
7777
int ioc_exists;
7878
volatile int slc_enable = 1;
79+
volatile int ioc_enable = 1;
7980

8081
void (*_cache_line_loop_ic_fn)(unsigned long paddr, unsigned long vaddr,
8182
unsigned long sz, const int cacheop);
@@ -203,7 +204,7 @@ void read_decode_cache_bcr(void)
203204
}
204205

205206
READ_BCR(ARC_REG_CLUSTER_BCR, cbcr);
206-
if (cbcr.c)
207+
if (cbcr.c & ioc_enable)
207208
ioc_exists = 1;
208209
}
209210

0 commit comments

Comments
 (0)