From: Magnus Damm Date: Thu, 25 Dec 2008 09:17:09 +0000 (+0900) Subject: sh: make gpio_get/set_value() O(1) X-Git-Tag: v2.6.30-rc1~673^2~99 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18801be7f805b891876a6676ec7fac2e1acdec13;p=pandora-kernel.git 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 Signed-off-by: Paul Mundt --- Reading git-diff-tree failed