Huacai Chen 0be032c190 MIPS: c-r4k: Fix Loongson-3's vcache/scache waysize calculation
If scache.waysize is 0, r4k___flush_cache_all() will do nothing and
then cause bugs. BTW, though vcache.waysize isn't being used by now,
we also fix its calculation.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J . Hill <Steven.Hill@caviumnetworks.com>
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15756/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-03-21 23:22:43 +01:00
..
2017-02-21 14:21:11 -08:00
2016-10-06 17:31:02 +02:00
2016-08-03 08:16:30 +02:00
2017-02-21 14:21:11 -08:00
2017-01-25 02:51:11 +01:00
2016-04-03 12:32:09 +02:00
2017-03-08 12:11:13 +01:00
2017-01-24 18:30:35 +01:00
2015-11-11 08:36:36 +01:00