diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2015-06-09 11:25:22 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-08-20 15:45:31 +0300 |
commit | 1648c70d301e669ba03aa1c70fff46ec2c400414 (patch) | |
tree | 7d0920b42bb3f44b43b2467cd24c3008664f1266 /arch/arc | |
parent | 79335a2ca03fdd883823e068b5e2f89a8ee47839 (diff) | |
download | linux-1648c70d301e669ba03aa1c70fff46ec2c400414.tar.xz |
ARCv2: IOC: Allow boot time disable
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/mm/cache.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c index 7c424e3f980d..5c825c8ebe10 100644 --- a/arch/arc/mm/cache.c +++ b/arch/arc/mm/cache.c @@ -23,7 +23,7 @@ static int l2_line_sz; int ioc_exists; -volatile int slc_enable = 1; +volatile int slc_enable = 1, ioc_enable = 1; void (*_cache_line_loop_ic_fn)(unsigned long paddr, unsigned long vaddr, unsigned long sz, const int cacheop); @@ -59,7 +59,8 @@ char *arc_cache_mumbojumbo(int c, char *buf, int len) p->sz_k, p->line_len, IS_USED_RUN(slc_enable)); if (ioc_exists) - n += scnprintf(buf + n, len - n, "IOC\t\t: exists\n"); + n += scnprintf(buf + n, len - n, "IOC\t\t:%s\n", + IS_USED_RUN(ioc_enable)); return buf; } @@ -154,7 +155,7 @@ slc_chk: } READ_BCR(ARC_REG_CLUSTER_BCR, cbcr); - if (cbcr.c) + if (cbcr.c && ioc_enable) ioc_exists = 1; } |