summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@engr.sgi.com>2005-12-12 18:34:32 +0100
committerTony Luck <tony.luck@intel.com>2005-12-16 19:52:46 +0100
commitdc86e88c2bb8a7603ee175fbb6a9e92cf3293dd8 (patch)
treea15905f02969ba9471b8cfd28f7dc041189dabb5 /arch/ia64/kernel/vmlinux.lds.S
parent[IA64-SGI] change default_sn2 to NR_CPUS==1024 (diff)
downloadlinux-dc86e88c2bb8a7603ee175fbb6a9e92cf3293dd8.tar.xz
linux-dc86e88c2bb8a7603ee175fbb6a9e92cf3293dd8.zip
[IA64] Add __read_mostly support for IA64
sparc64, i386 and x86_64 have support for a special data section dedicated to rarely updated data that is frequently read. The section was created to avoid false sharing of those rarely read data with frequently written kernel data. This patch creates such a data section for ia64 and will group rarely written data into this section. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/vmlinux.lds.S')
-rw-r--r--arch/ia64/kernel/vmlinux.lds.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ia64/kernel/vmlinux.lds.S b/arch/ia64/kernel/vmlinux.lds.S
index 30d8564e9603..73af6267d2ef 100644
--- a/arch/ia64/kernel/vmlinux.lds.S
+++ b/arch/ia64/kernel/vmlinux.lds.S
@@ -177,6 +177,9 @@ SECTIONS
}
. = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose kernel data */
+ .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
+ { *(.data.read_mostly) }
+
.data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
{ *(.data.cacheline_aligned) }