sh: Optimise memcpy_to/fromio for SH4
authorStuart Menefy <stuart.menefy@st.com>
Mon, 24 Aug 2009 08:35:07 +0000 (17:35 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Aug 2009 08:35:07 +0000 (17:35 +0900)
commit5e9377ec6f84e5334e9347e84e77d34e9a089ca7
tree786de19a4f24088aea641be293c869673449aa1f
parent8af57f8b4c0ada9063b1cee9d81e3e59f04ce5a2
sh: Optimise memcpy_to/fromio for SH4

Optimise memcpy_to/fromio. This is used extensivly by MTD, so is a
worthwhile performance gain. The main savings come from not repeatedly
calling readl/writel, and doing word instead of byte at a time
transfers. Also using "movca.l" on SH4 gives a small performance win.

Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/io.c