lkml.org 
[lkml]   [2007]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 4/7] SMP: Implement on_one_cpu()
    From
    Date
    I don't see any documented restrictions about preemption being
    disabled when this function is called, but...

    > +int on_one_cpu(int cpu, void (*func) (void *info), void *info,
    > + int retry, int wait)
    > +{
    > + int ret;
    > + int this_cpu;
    > +
    > + this_cpu = get_cpu();

    what if a preempt and reschedule to a different CPU happens right
    here, after this_cpu is set?

    > + if (this_cpu == cpu) {
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-05-24 15:47    [W:0.023 / U:0.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site