ARC: add SMP_CACHE_BYTES value validate
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Thu, 26 Jul 2018 13:15:44 +0000 (16:15 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 30 Jul 2018 16:46:19 +0000 (09:46 -0700)
commit386177da9e601ed176d54c04324d9ebf44c70620
treec0cb9047afe65e8c1b4fc5156eec188927eaff79
parenteb2777397fd83a4a7eaa26984d09d3babb845d2a
ARC: add SMP_CACHE_BYTES value validate

Check that SMP_CACHE_BYTES (and hence ARCH_DMA_MINALIGN) is larger
or equal to any cache line length by comparing it with values
previously read from ARC cache BCR registers.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/cache.c