sh: fix wrong icache/dcache address-array start addr in cache-debugfs.
authorSrinivas KANDAGATLA <srinivas.kandagatla@st.com>
Thu, 2 Jun 2011 10:30:44 +0000 (10:30 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 6 Jun 2011 03:30:02 +0000 (12:30 +0900)
commit298c48a811673ba5e292359545f3af6d1a6c9764
tree3f81630f55a7b3c3f49d0567c4e88e99e1737ba5
parent0792644d22852f40c8ad16c4ba1fefd76aba5643
sh: fix wrong icache/dcache address-array start addr in cache-debugfs.

This patch fixes a icache/dcache address-array start address while
dumping its entires in debugfs. Perviously the code was attempting to
remember the address in static variable, which is no more required
for debugfs, as the function can be executed in one pass.

Without this patch the start address ends up in wrong place and the
/sys/kernel/debug/sh/icache or dcache debugfs contents may not be correct.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Cc: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/cache-debugfs.c