commit | 5e9377ec6f84e5334e9347e84e77d34e9a089ca7 | [log] [tgz] |
---|---|---|
author | Stuart Menefy <stuart.menefy@st.com> | Mon Aug 24 17:35:07 2009 +0900 |
committer | Paul Mundt <lethal@linux-sh.org> | Mon Aug 24 17:35:07 2009 +0900 |
tree | 786de19a4f24088aea641be293c869673449aa1f | |
parent | 8af57f8b4c0ada9063b1cee9d81e3e59f04ce5a2 [diff] |
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>