sh: make gpio_get/set_value() O(1)
commit18801be7f805b891876a6676ec7fac2e1acdec13
authorMagnus Damm <damm@igel.co.jp>
Thu, 25 Dec 2008 09:17:09 +0000 (25 18:17 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 27 Jan 2009 05:49:09 +0000 (27 14:49 +0900)
tree71b4366a89ac25980dc16bc1b33fbc6943f1155c
parent5376071069ec8a7e6a8112beab16fc24f5139475
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>
arch/sh/include/asm/gpio.h
arch/sh/kernel/gpio.c