sh: Fix SH-3 cache entry_mask and way_size calculation.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 12 Mar 2007 07:15:22 +0000 (16:15 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 12 Mar 2007 07:15:22 +0000 (16:15 +0900)
commitffe1b4e9f436fd7bb784f3bf7ee963c149fbca5f
tree53e5404fda007af8efbb985a4910cbaa39a6b747
parentfbd168461e65e73016c34b2eacd76d87218c8a9f
sh: Fix SH-3 cache entry_mask and way_size calculation.

The code for performing the calculation was only in the SH-4 probe
path, move it out to the common path so the other parts get this
right too.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/init.c
arch/sh/kernel/cpu/sh4/probe.c