From: David Brownell Date: Fri, 4 Jul 2008 06:40:16 +0000 (-0700) Subject: [MTD] [NAND] atmel_nand speedup via {read,write}s{b,w}() X-Git-Tag: v2.6.27-rc1~69^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23a346ca4a5a6f50f81062456af955155f68e313;p=pandora-kernel.git [MTD] [NAND] atmel_nand speedup via {read,write}s{b,w}() This uses __raw_{read,write}s{b,w}() primitives to access data on NAND chips for more efficient I/O. On an arm926 with memory clocked at 100 MHz, this reduced the elapsed time for a 64 MiB read by 16%. ("dd" /dev/mtd0 to /dev/null, with an 8-bit NAND using hardware ECC and 128KiB blocksize.) Also some minor section tweaks: - Use platform_driver_probe() so no pointer to probe() lingers after that code has been removed at run-time. - Use __exit and __exit_p so the remove() code will normally be removed by the linker. Since these buffer read/write calls are new, this increases the runtime code footprint (by 88 bytes on my build, after the section tweaks). [haavard.skinnemoen@atmel.com: rebase onto atmel_nand rename] Signed-off-by: David Brownell Signed-off-by: HÃ¥vard Skinnemoen Acked-by: Andrew Victor Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse --- Reading git-diff-tree failed