• Rusty Russell's avatar
    cpumask: make CONFIG_NR_CPUS always valid. · 278d1ed6
    Rusty Russell authored
    Impact: cleanup
    
    Currently we have NR_CPUS, which is 1 on UP, and CONFIG_NR_CPUS on
    SMP.  If we make CONFIG_NR_CPUS always valid (and always 1 on !SMP),
    we can skip the middleman.
    
    This also allows us to find and check all the unaudited NR_CPUS usage
    as we prepare for v. large NR_CPUS.
    
    To avoid breaking every arch, we cheat and do this for the moment
    in the header if the arch doesn't.
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: default avatarMike Travis <travis@sgi.com>
    278d1ed6
threads.h 938 Bytes