- s390-add-read_mostly-optimization.patch removed from -mm tree

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

 



The patch titled

     s390: add read_mostly optimization

has been removed from the -mm tree.  Its filename is

     s390-add-read_mostly-optimization.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


From: Christian Borntraeger <cborntra@xxxxxxxxxx>

Add a read_mostly section and define __read_mostly to prevent cache line
pollution due to writes for mostly read variables.  In addition fix the
incorrect alignment of the cache_line_aligned data section.  s390 has a
cacheline size of 256 bytes.

Signed-off-by: Christian Borntraeger <cborntra@xxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/s390/kernel/vmlinux.lds.S |    4 +++-
 include/asm-s390/cache.h       |    2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff -puN arch/s390/kernel/vmlinux.lds.S~s390-add-read_mostly-optimization arch/s390/kernel/vmlinux.lds.S
--- devel/arch/s390/kernel/vmlinux.lds.S~s390-add-read_mostly-optimization	2006-04-27 18:39:06.000000000 -0700
+++ devel-akpm/arch/s390/kernel/vmlinux.lds.S	2006-04-27 18:39:06.000000000 -0700
@@ -58,9 +58,11 @@ SECTIONS
   . = ALIGN(4096);
   .data.page_aligned : { *(.data.idt) }
 
-  . = ALIGN(32);
+  . = ALIGN(256);
   .data.cacheline_aligned : { *(.data.cacheline_aligned) }
 
+  . = ALIGN(256);
+  .data.read_mostly : { *(.data.read_mostly) }
   _edata = .;			/* End of data section */
 
   . = ALIGN(8192);		/* init_task */
diff -puN include/asm-s390/cache.h~s390-add-read_mostly-optimization include/asm-s390/cache.h
--- devel/include/asm-s390/cache.h~s390-add-read_mostly-optimization	2006-04-27 18:39:06.000000000 -0700
+++ devel-akpm/include/asm-s390/cache.h	2006-04-27 18:39:06.000000000 -0700
@@ -16,4 +16,6 @@
 
 #define ARCH_KMALLOC_MINALIGN	8
 
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
 #endif
_

Patches currently in -mm which might be from cborntra@xxxxxxxxxx are

origin.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