• A
    nodeinfo: Add old kernel compatibility to nodeGetPresentCPUBitmap() · 37f73e4a
    Andrea Bolognani 提交于
    If the cpu/present file is not available, we assume that the kernel
    is too old to support non-consecutive CPU ids and return a bitmap
    with all the bits set to represent this fact. This assumption is
    already exploited in nodeGetCPUCount().
    
    This means users of this API can expect the information to always
    be available unless an error has occurred, and no longer need to
    treat the NULL return value as a special case.
    
    The error message has been updated as well.
    37f73e4a
nodeinfo.c 59.9 KB