diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:07 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:11:07 +0000 |
commit | 55c9ab6ba2f85c34fa64e06107762b1d65553208 (patch) | |
tree | e4eba9968404e82ca6fd8e54e1522d4a30f6af8a /drivers/mfd | |
parent | 49a2c2b6f311666686744215c2a67442f0ed6550 (diff) |
change-glamo-mci-try-memcpy.patch
Trial to see if (mainly 32-bit) memcpy is any better than u16 loop
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/glamo/glamo-mci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-mci.c b/drivers/mfd/glamo/glamo-mci.c index 10617cc84bd..0c8c1974f39 100644 --- a/drivers/mfd/glamo/glamo-mci.c +++ b/drivers/mfd/glamo/glamo-mci.c @@ -199,8 +199,16 @@ static void do_pio_read(struct glamo_mci_host *host) block = (u16 *)host->pio_ptr; res = host->pio_words << 1; #endif +#if 0 + /* u16-centric memcpy */ while (host->pio_words--) *host->pio_ptr++ = *from_ptr++; +#else + /* memcpy can be faster? */ + memcpy((void *)host->pio_ptr, from_ptr, host->pio_words << 1); + host->pio_ptr += host->pio_words; +#endif + #ifdef DEBUG print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 1, (void *)block, res, 1); |