+ x86-powerpc-make-hardirq_ctx-and-softirq_ctx-__read_mostly.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     x86/powerpc make hardirq_ctx and softirq_ctx __read_mostly

has been added to the -mm tree.  Its filename is

     x86-powerpc-make-hardirq_ctx-and-softirq_ctx-__read_mostly.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Andreas Mohr <andi@xxxxxxxxxxxxxxxxxxxxxxx>

The hardirq_ctx and softirq_ctx variables are written to on init only,

Signed-off-by: Andreas Mohr <andi@xxxxxxxx>
Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 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)
 {
_

Patches currently in -mm which might be from andi@xxxxxxxxxxxxxxxxxxxxxxx are

acpi-idle-__read_mostly-and-de-init-static-var.patch
acx1xx-wireless-driver.patch
i386-apmc-optimization.patch
x86-powerpc-make-hardirq_ctx-and-softirq_ctx-__read_mostly.patch
make-pmtmr_ioport-__read_mostly.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux