]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57c989ee50240fe211a1e504e8f24d24aa48f384
tree3f81630f55a7b3c3f49d0567c4e88e99e1737ba5
parentaef1b307bb05e6e13aaad659591b579ff747ced7
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