[lkml]   [2002]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH] net drivers and cache alignment
    Andrew Morton wrote:
    > It needs padding _only_ on SMP. ____cacheline_aligned_in_smp.
    > So your patch will do what you want it to do. You should just tag the
    > first member of a group with ____cacheline_aligned_in_smp, and keep an
    > eye on things with offsetof().


    For this case, though, I want to align on cacheline bounaries even on
    UP, right? That's why I picked ____cacheline_aligned. It uses
    L1_CACHE_BYTES when !CONFIG_SMP. Other uses of ____cacheline_aligned in
    the kernel seem to relate to irq matters, just like my groupings in tg3.h.

    [obviously benchmarking can answer some of this, but I want to hammer
    out silliness first]


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:31    [W:0.019 / U:13.084 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site