diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-03-12 16:15:22 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-03-12 16:15:22 +0900 |
commit | ffe1b4e9f436fd7bb784f3bf7ee963c149fbca5f (patch) | |
tree | 53e5404fda007af8efbb985a4910cbaa39a6b747 /arch/sh/kernel/cpu/sh4/probe.c | |
parent | fbd168461e65e73016c34b2eacd76d87218c8a9f (diff) | |
download | kernel-common-ffe1b4e9f436fd7bb784f3bf7ee963c149fbca5f.tar.gz kernel-common-ffe1b4e9f436fd7bb784f3bf7ee963c149fbca5f.tar.bz2 kernel-common-ffe1b4e9f436fd7bb784f3bf7ee963c149fbca5f.zip |
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>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/probe.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/probe.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 9d28c88d2f9d..58950de2696d 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c @@ -195,13 +195,6 @@ int __init detect_cpu_and_cache_system(void) } - /* Setup the rest of the I-cache info */ - current_cpu_data.icache.entry_mask = current_cpu_data.icache.way_incr - - current_cpu_data.icache.linesz; - - current_cpu_data.icache.way_size = current_cpu_data.icache.sets * - current_cpu_data.icache.linesz; - /* And the rest of the D-cache */ if (current_cpu_data.dcache.ways > 1) { size = sizes[(cvr >> 16) & 0xf]; @@ -209,12 +202,6 @@ int __init detect_cpu_and_cache_system(void) current_cpu_data.dcache.sets = (size >> 6); } - current_cpu_data.dcache.entry_mask = current_cpu_data.dcache.way_incr - - current_cpu_data.dcache.linesz; - - current_cpu_data.dcache.way_size = current_cpu_data.dcache.sets * - current_cpu_data.dcache.linesz; - /* * Setup the L2 cache desc * |