lkml.org 
[lkml]   [2012]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] x86, boot: Optimize the elf header handling.
Hello, guys.

On Sun, Jul 01, 2012 at 11:37:22AM -0700, H. Peter Anvin wrote:
> If we don't need it, I think we can use -z max-page-size=4096, but we
> use the PMD alignment for percpu on x86-64; Tejun, does that apply to
> the .data..percpu section in the executable as well?

I don't think the .data..percpu section needs 2M alignment. The
percpu data section is only used as init template and actual percpu
addresses always go through offsetting against __per_cpu_offset[] - no
matter what the vaddrs in the vmlinux are, they get offsetted into 2M
aligned linear address if necessary. I think the only alignment
.data..percpu needs is cacheline alignment for separating its
subsections.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2012-07-02 19:42    [W:0.160 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site