lkml.org 
[lkml]   [2009]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] percpu: add optimized generic percpu accessors
    Andrew Morton wrote:
    > On Thu, 15 Jan 2009 19:02:59 +0100 Ingo Molnar <mingo@elte.hu> wrote:
    >
    >> * Andrew Morton <akpm@linux-foundation.org> wrote:
    ..
    >>> I wonder if the preempt_disable()/preempt_enable() in here actually
    >>> does anything useful on any architecture.
    >> Provides "this is IRQ safe"
    >
    > ?
    >
    >> and "this is preempt safe" semantics.
    >
    > Of course. But do any architectures actually _need_ that for a single read?
    ..

    If the target is unaligned, then RISC architectures will need protection there.
    If we can guarantee correct memory alignment of the target, then no / none.

    Cheers


    \
     
     \ /
      Last update: 2009-01-16 15:13    [W:0.021 / U:65.236 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site