]> 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)
commit957d0386459d53f10841231f972a4cdee0afda18
tree3f81630f55a7b3c3f49d0567c4e88e99e1737ba5
parent2bd3c5930fe06dc3f864c59c626900c2f167e48c
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