• Rusty Russell's avatar
    [PATCH] any_online_cpus to return NR_CPUS to mean "none". · 923c572e
    Rusty Russell authored
    Matt Fleming points out that returning int from any_online_cpu
    where cpu numbers are passed as unsigned ints elsewhere is awkward
    and a little dangerous.
    
    Make any_online_cpu() match find_first_bit(), by returning NR_CPUS
    when no cpu is found, rather than -1.  This also simplifies the
    future case where NR_CPUS > BITS_PER_LONG.
    923c572e
smp.h 1.97 KB