diff options
author | Andreas Mohr <andi@rhlx01.fht-esslingen.de> | 2006-06-23 02:05:30 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 07:43:05 -0700 |
commit | 22722051fb6bcbb95c895e68dad10d34a9db7e4d (patch) | |
tree | 2f6e7a7888b4369cb2dd18be1cd4d3b18730280b /arch/i386 | |
parent | 89d0cf01c0aa9e8241cc3703a359ecd6abf3c28a (diff) | |
download | op-kernel-dev-22722051fb6bcbb95c895e68dad10d34a9db7e4d.zip op-kernel-dev-22722051fb6bcbb95c895e68dad10d34a9db7e4d.tar.gz |
[PATCH] x86/powerpc make hardirq_ctx and softirq_ctx __read_mostly
The hardirq_ctx and softirq_ctx variables are written to on init only,
Signed-off-by: Andreas Mohr <andi@lisas.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/kernel/irq.c b/arch/i386/kernel/irq.c index f3a9c78..248e922 100644 --- a/arch/i386/kernel/irq.c +++ b/arch/i386/kernel/irq.c @@ -42,8 +42,8 @@ union irq_ctx { u32 stack[THREAD_SIZE/sizeof(u32)]; }; -static union irq_ctx *hardirq_ctx[NR_CPUS]; -static union irq_ctx *softirq_ctx[NR_CPUS]; +static union irq_ctx *hardirq_ctx[NR_CPUS] __read_mostly; +static union irq_ctx *softirq_ctx[NR_CPUS] __read_mostly; #endif /* |