From b325cae34addec5250e61ac4a4292dd30a5766d8 Mon Sep 17 00:00:00 2001 From: Christian Borntraeger Date: Thu, 27 Apr 2006 18:40:24 -0700 Subject: [PATCH] --- yaml --- r: 26298 b: refs/heads/master c: 58268b97f679108d32a882a7fc029585da801975 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/s390/kernel/vmlinux.lds.S | 4 +++- trunk/include/asm-s390/cache.h | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 95b1692fbe52..faab40938c3b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b73d40c6178f2c8b2d574db566b47f36e3d12072 +refs/heads/master: 58268b97f679108d32a882a7fc029585da801975 diff --git a/trunk/arch/s390/kernel/vmlinux.lds.S b/trunk/arch/s390/kernel/vmlinux.lds.S index 9289face3027..9f34bb54c051 100644 --- a/trunk/arch/s390/kernel/vmlinux.lds.S +++ b/trunk/arch/s390/kernel/vmlinux.lds.S @@ -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 --git a/trunk/include/asm-s390/cache.h b/trunk/include/asm-s390/cache.h index e20cdd9074db..cdf431b061bb 100644 --- a/trunk/include/asm-s390/cache.h +++ b/trunk/include/asm-s390/cache.h @@ -16,4 +16,6 @@ #define ARCH_KMALLOC_MINALIGN 8 +#define __read_mostly __attribute__((__section__(".data.read_mostly"))) + #endif