Re: [patch 2/3] add new macros to make percpu readmostly sectioncorrectly align

From: Shaohua Li
Date: Sun Dec 12 2010 - 19:41:35 EST


On Fri, 2010-12-10 at 23:14 +0800, Tejun Heo wrote:
> Hello,
>
> On 12/02/2010 03:02 AM, Shaohua Li wrote:
> > percpu readmostly section should start and end at address cachline aligned.
> > Idealy we should change PERCPU_VADDR/PERCPU, but I can't change all arch code, so
> > I add new macros for x86.
> >
> > Signed-off-by: Shaohua Li <shaohua.li@xxxxxxxxx>
>
> Why add another set of macros? Can't you just make the default one
> aligned?
how to do it without changing all arch code? There isn't cache line size
macro for all arch which could be used in vmlinux.lds.h, IIRC.

Thanks,
Shaohua

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/