/[linux-patches]/genpatches-2.6/tags/2.6.15-11/1053_4_x86_64-cpu-refs.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.15-11/1053_4_x86_64-cpu-refs.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 351 - (show annotations) (download)
Wed Mar 29 11:55:38 2006 UTC (12 years, 5 months ago) by dsd
File size: 1611 byte(s)
2.6.15-11 release
1 From stable-bounces@linux.kernel.org Mon Feb 6 15:26:07 2006
2 Date: Tue, 07 Feb 2006 00:18:55 +0100
3 From: "Andi Kleen" <ak@suse.de>
4 To: stable@kernel.org
5 Cc:
6 Subject: [PATCH] x86_64: Let impossible CPUs point to reference per cpu data
7
8 Don't mark the reference per cpu data init data (so it stays
9 around after boot) and point all impossible CPUs to it. This way
10 they reference some valid - although shared memory. Usually
11 this is only initialization like INIT_LIST_HEADs and there
12 won't be races because these CPUs never run. Still somewhat hackish.
13
14 Signed-off-by: Andi Kleen <ak@suse.de>
15 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 ---
18
19 arch/x86_64/kernel/vmlinux.lds.S | 10 ++++++----
20 1 files changed, 6 insertions(+), 4 deletions(-)
21
22 Index: linux-2.6.15.3/arch/x86_64/kernel/vmlinux.lds.S
23 ===================================================================
24 --- linux-2.6.15.3.orig/arch/x86_64/kernel/vmlinux.lds.S
25 +++ linux-2.6.15.3/arch/x86_64/kernel/vmlinux.lds.S
26 @@ -170,13 +170,15 @@ SECTIONS
27 . = ALIGN(4096);
28 __initramfs_start = .;
29 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { *(.init.ramfs) }
30 - __initramfs_end = .;
31 - . = ALIGN(32);
32 + __initramfs_end = .;
33 + /* temporary here to work around NR_CPUS. If you see this comment in 2.6.17+
34 + complain */
35 + . = ALIGN(4096);
36 + __init_end = .;
37 + . = ALIGN(128);
38 __per_cpu_start = .;
39 .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { *(.data.percpu) }
40 __per_cpu_end = .;
41 - . = ALIGN(4096);
42 - __init_end = .;
43
44 . = ALIGN(4096);
45 __nosave_begin = .;

  ViewVC Help
Powered by ViewVC 1.1.20