From: Andreas Mohr The hardirq_ctx and softirq_ctx variables are written to on init only, Signed-off-by: Andreas Mohr Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Signed-off-by: Andrew Morton --- arch/i386/kernel/irq.c | 4 ++-- arch/powerpc/kernel/irq.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -puN arch/i386/kernel/irq.c~x86-powerpc-make-hardirq_ctx-and-softirq_ctx-__read_mostly arch/i386/kernel/irq.c --- devel/arch/i386/kernel/irq.c~x86-powerpc-make-hardirq_ctx-and-softirq_ctx-__read_mostly 2006-04-20 23:33:44.000000000 -0700 +++ devel-akpm/arch/i386/kernel/irq.c 2006-04-20 23:33:44.000000000 -0700 @@ -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 /* diff -puN arch/powerpc/kernel/irq.c~x86-powerpc-make-hardirq_ctx-and-softirq_ctx-__read_mostly arch/powerpc/kernel/irq.c --- devel/arch/powerpc/kernel/irq.c~x86-powerpc-make-hardirq_ctx-and-softirq_ctx-__read_mostly 2006-04-20 23:33:44.000000000 -0700 +++ devel-akpm/arch/powerpc/kernel/irq.c 2006-04-20 23:33:44.000000000 -0700 @@ -379,8 +379,8 @@ unsigned int real_irq_to_virt_slowpath(u #endif /* CONFIG_PPC64 */ #ifdef CONFIG_IRQSTACKS -struct thread_info *softirq_ctx[NR_CPUS]; -struct thread_info *hardirq_ctx[NR_CPUS]; +struct thread_info *softirq_ctx[NR_CPUS] __read_mostly; +struct thread_info *hardirq_ctx[NR_CPUS] __read_mostly; void irq_ctx_init(void) { _