On Thu, Jul 19, 2007 at 01:48:12AM -0700, [EMAIL PROTECTED] wrote:
>
> Moves the remotely accessed per cpu data (which is currently marked
> as ____cacheline_aligned_in_smp) into a different section, where all the data
> elements are cacheline aligned. And as such, this differentiates the local
> only data and remotely accessed data cleanly.
>
> ---
> a/arch/arm/kernel/vmlinux.lds.S~define-new-percpu-interface-for-shared-data-version-4
> +++ a/arch/arm/kernel/vmlinux.lds.S
> @@ -66,6 +66,7 @@ SECTIONS
> . = ALIGN(4096);
> __per_cpu_start = .;
> *(.data.percpu)
> + *(.data.percpu.shared_aligned)
> __per_cpu_end = .;
> #ifndef CONFIG_XIP_KERNEL
> __init_begin = _stext;
Why is PERCPU not suitable for arm?
> diff -puN
> arch/i386/kernel/vmlinux.lds.S~define-new-percpu-interface-for-shared-data-version-4
> arch/i386/kernel/vmlinux.lds.S
> ---
> a/arch/i386/kernel/vmlinux.lds.S~define-new-percpu-interface-for-shared-data-version-4
> +++ a/arch/i386/kernel/vmlinux.lds.S
> @@ -181,6 +181,7 @@ SECTIONS
> .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) {
> __per_cpu_start = .;
> *(.data.percpu)
> + *(.data.percpu.shared_aligned)
> __per_cpu_end = .;
> }
> . = ALIGN(4096);
Ditto for i386
> ---
> a/arch/ia64/kernel/vmlinux.lds.S~define-new-percpu-interface-for-shared-data-version-4
> +++ a/arch/ia64/kernel/vmlinux.lds.S
> @@ -206,6 +206,7 @@ SECTIONS
> {
> __per_cpu_start = .;
> *(.data.percpu)
> + *(.data.percpu.shared_aligned)
> __per_cpu_end = .;
> }
> . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data
> fits
Ditto
> diff -puN
> arch/powerpc/kernel/vmlinux.lds.S~define-new-percpu-interface-for-shared-data-version-4
> arch/powerpc/kernel/vmlinux.lds.S
> ---
> a/arch/powerpc/kernel/vmlinux.lds.S~define-new-percpu-interface-for-shared-data-version-4
> +++ a/arch/powerpc/kernel/vmlinux.lds.S
> @@ -144,6 +144,7 @@ SECTIONS
> .data.percpu : {
> __per_cpu_start = .;
> *(.data.percpu)
> + *(.data.percpu.shared_aligned)
> __per_cpu_end = .;
> }
Ditto
Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html