Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6e3590f authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Andi Kleen
Browse files

[PATCH] x86: Allow percpu variables to be page-aligned



Let's allow page-alignment in general for per-cpu data (wanted by Xen, and
Ingo suggested KVM as well).

Because larger alignments can use more room, we increase the max per-cpu
memory to 64k rather than 32k: it's getting a little tight.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent de90c5ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ SECTIONS
  . = ALIGN(8);
  SECURITY_INIT

  . = ALIGN(64);
  . = ALIGN(8192);
  __per_cpu_start = .;
  .data.percpu : { *(.data.percpu) }
  __per_cpu_end = .;
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ SECTIONS
			usr/built-in.o(.init.ramfs)
		__initramfs_end = .;
#endif
		. = ALIGN(64);
		. = ALIGN(4096);
		__per_cpu_start = .;
			*(.data.percpu)
		__per_cpu_end = .;
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ SECTIONS
	}
	SECURITY_INIT

	. =  ALIGN (8192);
	__per_cpu_start = .;
	.data.percpu  : { *(.data.percpu) }
	__per_cpu_end = .;
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ SECTIONS
  __alt_instructions_end = .;
 .altinstr_replacement : { *(.altinstr_replacement) }

  . = ALIGN(4096);
  __per_cpu_start = .;
  .data.percpu  : { *(.data.percpu) }
  __per_cpu_end = .;
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ SECTIONS
	__initramfs_end = .;
  }
#endif
  . = ALIGN(L1_CACHE_BYTES);
  . = ALIGN(4096);
  .data.percpu  : AT(ADDR(.data.percpu) - LOAD_OFFSET) {
	__per_cpu_start = .;
	*(.data.percpu)
Loading