• nhorman's avatar
    Fix affinity_hint code. · 3c7fe6d3
    nhorman authored
    Theres a problem with the affintiy_hint code.  Specifically it fails to
    determine when an affinity_hint file is all f's (affinity_hint == all cpus).  As
    such, irqbalance is currently allowing all cpus to handle all irqs, which is the
    antithesis of its function.  It also makes use of cpus_full, which is poorly
    formed, as it assumes that the affinity_hint mask is always NR_CPUS in length,
    and each bit is set (even for those cpus not actually present in the system).
    This patch corrects both of those problems, by only checking all the present
    cpus in the system in the mask, and detecting when that mask is all f's. 
    Signed-off-by: 's avatarNeil Horman  <nhorman@tuxdriver.com>
    
    
    
    
    git-svn-id: https://irqbalance.googlecode.com/svn/trunk@30 46b42954-3823-0410-bd82-eb80b452c9b5
    3c7fe6d3
bitmap.c 9.87 KB