commit | 18801be7f805b891876a6676ec7fac2e1acdec13 | [log] [tgz] |
---|---|---|
author | Magnus Damm <damm@igel.co.jp> | Thu Dec 25 18:17:09 2008 +0900 |
committer | Paul Mundt <lethal@linux-sh.org> | Tue Jan 27 14:49:09 2009 +0900 |
tree | 71b4366a89ac25980dc16bc1b33fbc6943f1155c | |
parent | 5376071069ec8a7e6a8112beab16fc24f5139475 [diff] |
sh: make gpio_get/set_value() O(1) This patch modifies the table based SuperH gpio implementation to make use of direct table lookups. With this change the functions gpio_get_value() and gpio_set_value() are O(1). Tested on Migo-R using bitbanging mmc. Performance is improved from 11 KBytes/s to 26 Kbytes/s. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>