sh: Optimize runtime disabling of trapped I/O.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 27 Jan 2010 12:56:57 +0000 (21:56 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 27 Jan 2010 12:56:57 +0000 (21:56 +0900)
Presently trapped I/O is only registered if it's not explicitly disabled
for the platforms that select it openly. From the fault path this runs
through an address lookup before figuring out that nothing matches and
falls back through the error path, but we can forego the lookup
completely by testing if it's been explicitly disabled. This provides a
measurable speedup for things like qemu that rely on runtime disabling.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

No differences found