lkml.org 
[lkml]   [2004]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: RCU scaling on large systems
    On Sat, May 01, 2004 at 02:17:04PM -0700, William Lee Irwin III wrote:
    > +static inline void rcu_set_need_switch_cpumask(cpumask_t cpumask)
    > +{
    > + int cpu;
    > + for_each_cpu_mask(cpu, cpumask)
    > + atomic_set(&per_cpu(rcu_data, cpu).need_switch, 1);
    > +}

    needs to be:
    for_each_online_cpu(cpu)
    atomic_set(&per_cpu(rcu_data, cpu).need_switch, !!cpu_isset(cpu, cpumask));


    -- wli
    -
    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: 2005-03-22 14:02    [W:0.024 / U:3.588 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site