]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: 32 bits: shrink and align IRQ stubs
authorH. Peter Anvin <hpa@zytor.com>
Tue, 11 Nov 2008 21:24:58 +0000 (13:24 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 11 Nov 2008 21:24:58 +0000 (13:24 -0800)
commitb7c6244f13d37592003b46e12500a90e9781ad9d
tree24b19efe784a1a9975610228ddfa98cee47dac06
parent4687518c4cb7807fbeff21770e309080f9eb7f2f
x86: 32 bits: shrink and align IRQ stubs

Shrink the IRQ stubs on 32 bits down to just over four bytes per (we
fit seven into a 32-byte chunk.)  This shrinks the total icache
consumption of the IRQ stubs down to an even kilobyte, if all of them
are in active use.

The downside is that we end up with a double jump, which could have a
negative effect on some pipelines.  The double jump is always inside
the same cacheline on any modern chips (the exception being
486/Elan/Geode which have only 16-byte cachelines, but are unlikely to
have too many interrupt sources.)

To get the most effect, cache-align the IRQ stubs.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/entry_32.S