aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAndreas Mohr <andi@rhlx01.fht-esslingen.de>2006-06-23 05:05:30 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-23 10:43:05 -0400
commit22722051fb6bcbb95c895e68dad10d34a9db7e4d (patch)
tree2f6e7a7888b4369cb2dd18be1cd4d3b18730280b /arch/powerpc
parent89d0cf01c0aa9e8241cc3703a359ecd6abf3c28a (diff)
[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/powerpc')
-rw-r--r--arch/powerpc/kernel/irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index bfcec4cc70a7..40d4c14fde8f 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -380,8 +380,8 @@ unsigned int real_irq_to_virt_slowpath(unsigned int real_irq)
380#endif /* CONFIG_PPC64 */ 380#endif /* CONFIG_PPC64 */
381 381
382#ifdef CONFIG_IRQSTACKS 382#ifdef CONFIG_IRQSTACKS
383struct thread_info *softirq_ctx[NR_CPUS]; 383struct thread_info *softirq_ctx[NR_CPUS] __read_mostly;
384struct thread_info *hardirq_ctx[NR_CPUS]; 384struct thread_info *hardirq_ctx[NR_CPUS] __read_mostly;
385 385
386void irq_ctx_init(void) 386void irq_ctx_init(void)
387{ 387{