]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: add read_mostly optimization
authorChristian Borntraeger <cborntra@de.ibm.com>
Fri, 28 Apr 2006 01:40:24 +0000 (18:40 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 28 Apr 2006 15:33:48 +0000 (08:33 -0700)
commitea44309a7a796a7bb16f4decc4cb2ce752f23305
tree5b416785ab2fc75f5f26f56863b96329e274fe08
parent21881f1b6a7eb3557154ef79f612705c75124254
[PATCH] s390: add read_mostly optimization

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@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/vmlinux.lds.S
include/asm-s390/cache.h